npm常用命令

npm install xxx 安装模块

npm install xxx -g 将模块安装到全局环境中 参考http://goddyzhao.tumblr.com/post/9835631010/no-direct-command-for-local-installed-command-line-modul

npm ls 查看安装的模块及依赖

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

npm uninstall xxx  (-g) 卸载模块

npm cache clean 清理缓存

posted @ 2012-01-21 13:59  雪霁霜飞  阅读(45294)  评论(2编辑  收藏  举报