NodeJS NPM Proxy error when installing grunt

后端 未结 11 1892
太阳男子
太阳男子 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:34

    The error occurs because of the configuration set-up in .npmrc file in the directory C://Users//.

    Open the .npmrc file in notepad and remove the proxy set up in there. You only need ms build version and ssl set to false as shown in this screenshot.

    This will solve the issue. And now the npm install will work perfectly fine.

提交回复
热议问题