SoFunction
Updated on 2025-04-07

Two solutions to the problem of npm install stuck in "sill idealTree buildDeps"

What I want to share today is about solving the problem of executing in Vue projectsnpm installThe problem of stuck in "sill idealTree buildDeps". This problem may confuse you, but don't worry, I will solve it step by step.

Problem description

When you try to execute in a Vue projectnpm installWhen you are  , you may encounter a problem: the command is stuck at the "sill idealTree buildDeps" step and there is no response.

Cause of the problem

The root of this problem lies in the expiration of the domain name of the Taobao mirror source, but in fact, it is necessary to bind a new mirror source. As early as 2021, Taobao released a message saying that npm Taobao mirror has beenSwitch to. However, the old domain name stopped serving on May 31, 2022, but it wasn't really out of service until the HTTPS certificate expired in February.

Solution process

Method 1 - Change source

The initial solution to try was to switch the mirror source to the Taobao mirror source:

npm config set registry  

Then verify that the source is replaced successfully by following the command:

npm config get registry 

However, this method does not solve the problem.

Method 2 - Clean the cache

The next method to try is to clean the npm cache:

npm cache clean --force

However, this approach did not solve the problem.

Method 3 - Change the network

Try changing the network to another network, but this method doesn't work either.

Method 4 - Restart

Finally, try to restart the system, but the problem persists.

Final solution

Finally, after a series of attempts, two possible solutions were found:

1. Use the default image

You can set the mirror source to the default npm mirror source:

npm config set registry /

Alternatively, you can delete the image source and let npm use the default image source:

npm config delete registry

2. Change to a new Taobao mirror

If you still want to use Taobao mirrors, you can set the mirror source to the new Taobao mirror source:

npm config set registry 

By one of the two methods above, you should be able to successfully solve the problem of executing in Vue projectsnpm installThe problem of stuck in "sill idealTree buildDeps".

This is the article about the two solutions to the problem of npm install stuck in "sill idealTree buildDeps". For more related npm install sill idealTree buildDeps content, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!