常用的命令:
npm config set prefix "node-global路径"
npm config set cache "node-cache路径"
npm config set registry http://registry.npm.taobao.org/
npm config ls
npm config ls -l
nodejs
原文:https://www.cnblogs.com/erdanyang/p/14433709.html