当前位置:网站首页>NPM instal reports agent or network problems

NPM instal reports agent or network problems

2022-07-07 12:35:00 Xiaoding Chong duck!

Use... In the project today npm install When installing dependencies , There is such a problem

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.cnpmjs.org/axios failed, reason: getaddrinfo ENOTFOUND registry.cnpmjs.org
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

The reason for the problem is probably because Proxy server or network problems

So I found a solution through Baidu , as follows :

npm config set proxy null  // proxy: Proxy for external requests 
npm config set https-proxy null  // https-proxy: For proxy https Requested 

npm config For more learning materials, see Big guy's article npm-config

原网站

版权声明
本文为[Xiaoding Chong duck!]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130617454061.html