参考文章:https://segmentfault.com/q/1010000017860880
安装类库
某一语法:npm install [<@scope>/]
某些示例:
//安装某一指定版本
npm install test@0.0.2
//安装指定范围版本
//安装指定范围版本(大于)
npm install test@”>0.0.1”
//安装指定范围版本(小于)
npm install test@”<0.0.1”
//安装指定范围版本(之间)
npm install test@”^0.0.2”
npm install test@”>=0.0.2 <0.0.3”
更新类库
某一语法:npm update [-g] [
某些示例:
1 | //更新到最新版本 |