node.js - npm安装模块出错 ERRWindowNT6.1.7601
PHPz
PHPz 2017-04-17 14:46:18
0
5
776

最近买了台新电脑,装的是win7,但不知为何安装nodejs后安装npm会出现这样的错误,网上看了好多都说是代理问题,我将registry设为国内淘宝的镜像仍然不起作用,求大牛解答..

PHPz
PHPz

学习是最好的投资!

reply all(5)
Peter_Zhu
  1. run npm config get proxySee what you get

  2. If the above return is not empty, npm config set proxy null or npm config delete proxy, by the way, turn off the https proxy npm config set https-proxy null. If there is a certificate problem, turn off the verification of the certificate npm config set strict-ssl false, of course the above You don’t need to type all the commands. According to the error message, select the corresponding solution, and then try again

  3. If the command 1 is empty, check if there is HTTP_PROXY in your environment variable

  4. Have you enabled global proxy?

左手右手慢动作

There is a network problem, it is recommended to try another network

刘奇

Hello, has it been resolved? I also have this problem

伊谢尔伦

1. Network problem
2. Have you set up a global proxy, change or clear it (delete .npmrc/.cnpmrc files)
3. Use Taobao source
4. Try to hang up a VPN. . . .

迷茫

I’ve been struggling for a long time today. I’ve tried all the methods from everyone above but can’t figure it out.

My final solution is:

Delete the folder "node_modules" under the current project directory, and then run again: npm install

Perfect solution! !


Why was my answer ignored?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!