npm installation dependency error npm ERR code ENOTFOUND npm ERR errno ENOTFOUND

Error statement:

npm ERR! code ENOTFOUND  npm ERR! errno ENOTFOUND npm ERR! network request to http://jfrog.cloud.qiyi.domain:80/api/npm/npm/animejs failed, reason: getaddrinfo ENOTFOUND jfrog.cloud.qiyi.domain 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'

An error was reported when installing anime.js today:

 Solved and found:

Npm installs dependencies and reports errors. For example, when using npm install, the following errors are reported:

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.cnpmjs.org/webpack failed, reason: getaddrinfo ENOTFOUND proxy-szn
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'

can be resolved by:

1. Execute:

npm config get proxy
npm config get https-proxy

If the return value is not null, execute 2 directly. Make sure that both return values ​​are null, otherwise execute the following code:

npm config set proxy null
npm config set https-proxy null

2. Execute:

npm config set registry http://registry.cnpmjs.org/

Then execute the following code to install cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

Finally, use the following method to install it, and it will be successful.

cnpm install

But my problem is to install anime.js dependencies, so the last one I should enter:

cnpm i animejs --save

Problem solved~~yay!

Guess you like

Origin blog.csdn.net/qq_50497708/article/details/128322810