Home > Web Front-end > JS Tutorial > body text

Methods to solve the package management tool NPM and yarn download and installation timeout

青灯夜游
Release: 2020-08-19 10:25:33
forward
3434 people have browsed it

Methods to solve the package management tool NPM and yarn download and installation timeout

npm Set Taobao mirror address

npm install -g cnpm --registry=https://registry.npm.taobao.org
Copy after login
npm config set registry https://registry.npm.taobao.org
Copy after login

In this way, the npm command can be replaced by the cnpm command, such as when using the react scaffolding command A timeout error will be reported when create-react-app, this setting can solve the problem. [Video tutorial recommendation: nodejs video tutorial]

yarn Set Taobao mirror address

yarn config set registry https://registry.npm.taobao.org
Copy after login

Using the react scaffolding commandcreate-react -Timeout error reported when app:
There appears to be trouble with your network connection. Retrying…

It can be solved after the setting is completed.

For more programming-related knowledge, please visit: Introduction to Programming! !

The above is the detailed content of Methods to solve the package management tool NPM and yarn download and installation timeout. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
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!