node.js之Windows 系统下设置Nodejs NPM全局路径

node.js 0.10 版本下修改全局路径:

npm config set cache "D: odejs ode_cache"

npm config set prefix "D: odejs"

然后下载的插件会存于D: odejs ode_modules

查看 目前全局路径

npm config get cache

npm config get prefix

原文地址:https://www.cnblogs.com/draenei/p/4709950.html