Npm install under vscode, stuck in sill idealTree buildDeps how to solve

When installing a node-fetch plug-in under the vscode terminal today, it has been stuck in this place. At first I thought it was a bad network connection, but it still didn't work after repeated installation. This has to remind me of the Taobao mirror address problem. Before trying to save trouble, cnpm was not used, and the mirror image was not replaced. Just install node directly and download it directly. Because the default installation of npm is a foreign environment. If you encounter this situation, try to use the Taobao mirror address first. If it doesn't work, if you change to cnpm, you can only resort to reinstalling Dafa. . . . .

solution:

1: Use the command to set npm as the mirror source of Taobao

npm config set registry https://registry.npm.taobao.org

2. Use the command to check whether the installation is successful

npm config get registry

Here, the command will output Taobao’s image source address, and successful output means success

3. Continue to run npm install, you can continue to install successfully

Problem solved.

ps: What should I do if this problem still occurs after following the image source of Taobao?

npm set strict-ssl false Try setting ssl to false. Install npm install again

According to this method, it is perfectly solved. This article is only recorded as a daily problem. I hope that I will not step on the same pit next time.

Guess you like

Origin blog.csdn.net/zsusanj/article/details/127865622