npm命令

查看npm版本

npm -v

 

安装最新版本的npm

npm install npm@latest -g

 

查看全局安装的包

npm list -g --depth 0

 

删除某个包(如:XXX)

npm uninstall -g XXX

 

清理缓存

npm cache clean -f

posted @ 2018-09-20 21:39  伽利略  阅读(92)  评论(0编辑  收藏  举报