npm常用命令

2018-05-02  本文已影响0人  Bupt_Shirley

1. 创建模块

$ npm adduser
Username: shirley
Password:
Email: (this IS public) shirley@163.com

2. npm包的版本号

  • 如果只是修复bug, 则更新 Z 位;
  • 如果新增了功能,但是向下兼容,则更新Y位;
  • 如果有大变动,向下不兼容,则需要更新X位。

3. npm 常用命令

4. 使用淘宝npm镜像

$ npm install -g cnpm --registry=https://registry.npm.taobao.org
$ cnpm install [name]
上一篇 下一篇

猜你喜欢

热点阅读