Error GET httpsregistry.npm.taobao.org

The code error is as follows:

npm ERR! 404 Not Found - GET https://registry.npm.taobao.org/@babel/types/-/types-7.0.0-beta.35.tgz - [not_found] document not found

A new project was pulled today, but after npm install, an error is reported as shown in the figure below
insert image description here

The reason for the problem is that I installed the Taobao image locally but the image in the project is not the Taobao image.

Solution
Open the console: enter the following

npm config set registry https://registry.npmjs.org   
// 修改镜像 
npm config get registry  
//查看镜像 

Finally, as shown in the figure:
insert image description here

Finally, npm install again found that no error was reported. The project is ready to run.

Guess you like

Origin blog.csdn.net/qq_41117240/article/details/120510354