Npm install reported an error

npm install reported an error

http://registry.npm.taobao.or.
$npm install
npm WARN deprecated babel-preset-es2015@6.24.1:? Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated tween.js@16.6.0: This package has moved to @ tweenjs/tween.js. Please update your dependencies.
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated-replace it, Following the guidelines at https://medium.com/gulpjs/gul.
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist > 3.0 config used in other tools.
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm err! Code ECONNRESET
npm err! Errno ECONNRESET
npm err! Network request to http://registry.npm.taobao.or. failed, reason: read ECONNRESET
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

Feb.18,2022

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


it is recommended to remove the mirror station on Taobao. I found that there are often problems with Synchronize, the mirror station of Taobao. Various fancy errors were reported during installation, and there was a SHA1 code mismatch, and now that the official warehouse is not slow, npm has also added npm ci to install the defined version of package-lock.json , which greatly improves the speed of dependent installation.

so it is recommended that you remove the mirror station on Taobao to solve the problem.

Menu