NodeJS NPM Proxy error when installing grunt

后端 未结 11 1919
太阳男子
太阳男子 2020-12-25 13:58

When I\'m trying to install grunt via npm, I\'m getting a following error:

C:\\Program Files\\nodejs\\node_modules\\npm>npm inst         


        
11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-25 14:41

    The three thing to make npm working well inside the proxy network .

    This set npm registry , By default it may take https.

    npm config set registry "http://registry.npmjs.org/"

    Second is two set proxy in your system . If your organization use proxy or you.

    npm config set proxy "http://username:password@proxy-url:proxy-port"

    npm config set https-proxy "http://username:password@proxy-url:proxy-port"

提交回复
热议问题