一、相关命令
1.升级npm 包管理工具
npm i -g npm
2.产生一个package.json
npm init
3.列出已安装依赖
npm list -g
npm list 显示已经安装过的包
4.安装
npm install xxx -gd (global detail)
npm install xxx --save -dev
5. 卸载
npm unstall xxx -gd
npm unstall xxx
6.升级
npm update xxx -gd
npm update xxx
7. 查询及查看包的所有版本
npm search xxx
npm view xxx versions
npm root 查看依赖安装路径
npm root -g
淘宝镜像cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install xxx
yarn 包管理工具
https://yarnpkg.com/en/docs/install
https://yarn.bootcss.com/docs/getting-started.html
二、常见工具包