先设置代理:
npm config set proxy=http://<proxy_server>:<proxy_port>
然后直接安装:
npm install -g <nodejs_module>
评论已关闭