设置淘宝镜像:npm install -g cnpm --registry=https://registry.npm.taobao.org
临时使用淘宝镜像:npm install xxx --save-dev --registry https://registry.npm.taobao.org
获取当前镜像:npm get registry
清除npm缓存:npm cache clean --force
升级npm:npm install npm -g
安装包:npm install xxx
更新包:npm update xxx
卸载包:npm uninstall xxx
查看包:npm list --depth 0
添加用户:npm adduser
当前用户:npm whoami
发布npm包:npm publish
摸似安装包:npm link xxx
注册bin:npm rebuild
移除摸似安装包:npm unlink --no-save xxx
本文暂时没有评论,来添加一个吧(●'◡'●)