npm常用命令

阅读更多

npm常用命令总结:

 

npm install xxx 安装模块

npm uninstall xxx  (-g) 卸载模块

npm update 更新模块

npm ls 查看安装的模块

npm ls -g 查看全局安装的模块及依赖

 

npm install xxx -g 将模块安装到全局环境中 

npm config 管理npm的配置路径

npm cache 管理模块的缓存

 

npm start 启动模块

npm stop 停止模块

npm restart 重新启动模块

 

npm test 测试模块

npm version 查看模块版本

npm view 查看模块的注册信息

 

npm cache clean 清理缓存

你可能感兴趣的:(npm)