NodeJS NPM Proxy error when installing grunt

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

    You need to configure the npm config file, this can be done in the terminal:

    npm config set proxy http://proxy.company.com:8080
    
    npm config set https-proxy http://proxy.company.com:8080
    

    Your error log suggests to see 'npm help config', so i think the problem comes from there.

    If you want a link with more explanation see this blog entry (there are plenty more)

    Good luck!

提交回复
热议问题