npm trick
Opened this issue · 0 comments
showzyl commented
update 2018.3.26
后续使用yarn command
npm trick
npm home $package
打开 package 主页npm repo $package
打开 package Github 仓库npm outdated
检查 package 的过时依赖npm prune
检查 package.json 中未声明的 packagenpm shrinkwrap
锁定依赖版本npm config set prefix $dir
运行npm install -g
,无需加sudo
- 生产环节执行
--production
insipred by http://www.zcfy.cc/article/11-simple-npm-tricks-that-will-knock-your-wombat-socks-off-1206.html