npm config set prefix “XXX\nodejs\node_global” npm config set cache “XXX\nodejs\node_cache” 详细地址请参考:http://www.520jiu.com/blog/npm-%e9%85%8d%e7%bd%ae%e5%85%a8%e5%b1%80%e4%bb%93%e5%ba%93%e5%9c%b0%e5%9d%80/