npm uninstall -g <package> 參考 https://docs.npmjs.com/cli/uninstall https://docs.npmjs.com/getting-started/uninstalling-global-packages https://docs.npmjs.com/getting-started/uninstalling-local-packages
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 清理緩存 from: http://www.cnblogs.com/xiziyin/archive/2012/01/21/2328473.html