web:js:npm

来自bbxwiki
跳转至: 导航搜索

基本用法

npm install <module> --save # package.json - dependencies
npm install <module> --save-dev # package.json - devDependencies


镜像

npm install -g cnpm --registry=https://registry.npm.taobao.org
seeto https://npm.taobao.org/


发布自己的包

#0. regist in org site https://www.npmjs.com
#1. cli login
npm login
#2. cli publish
npm publish
seeto https://www.jianshu.com/p/f5d4c891830f


参见