-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] "sill idealTree buildDeps" takes a lot of time a project with workspaces #3257
Comments
I can't provide a example project as it's a commercial project with full of private dependencies but If there's some log or something I could try to give you, feel free to tell me how to extract it. |
Tried latest version 7.17.0. Still happening. |
I am still facing the slowness on latest npm v7 and v8 |
What helped me was to completely uninstall node and then to reinstall it with nvm. Edit: Okay, it happens again. |
@V-Dawg this is happening in Travis as well. I think it's something related with the way of resolving the tree. |
Tried with |
This bug is critical for me. It's so slow that causes Update:After running for a while, npm returns: npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/natural failed, reason: connect ETIMEDOUT 2606:4700::6810:1223:443
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
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/eduardo/.npm/_logs/2021-12-11T07_56_48_769Z-debug.log But when I go to |
Same issue I think?
Edit, just updated to
|
installing react with npx or installing packages for backend :,c
|
I tried all the solutions I found on the Internet: removing the proxy, setting the ssl cert to false, removing node_modules, removing the package-lock... nothing worked... Then, I updated my WSL Ubuntu 20.04 to 22.04 and it worked! sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt install update-manager-core
sudo nano /etc/update-manager/release-upgrades change the sudo do-release-upgrade -d
cat /etc/os-release for more info see this link |
This worked for me. It took a few hours but now everything is working as it should again. Clean slate. Thanks a lot for this @PedroLuisBernardos !!! |
works for me |
suddenly encountered this kind of issue again. even if i tried creating new empty project, i tried installing one package, it hangs too. what seems to be the problem? i have tried also the solutions provided on stack overflow and on this, still not work. |
What you have tried to resolve that isssue? I am stuck now. |
I've tried so many ways to run And if you're using a corporation network, try to use an wireless signal (Wi-fi). |
Yeah you should definitely upgrade to 22.04 |
works for me |
I can confirm the same issue: Environment |
I've moved the project to I'm closing the issue as I don't think there's no special interest on this. :) |
After all the cache clearing and folder deletion, good ol' machine restart done the trick... |
I can confirm the same issue: Environment |
Same issue. Environment Node and NPM installed through NVM. I have tried everything on this thread without success.
I have also tried node 16 with same hang. I cannot downgrade any further than 16 because it breaks min requirements on some packages. Running |
[Solved!] |
For me it worked to delete the proxy with
and also making sure that
|
one of the reason is IPV6. |
Same issue MacOs Switched to my personal G4 from Wifi and it worked. wtf |
As @lospringliu said, turning off IPV6 ended up fixing the issue for me. |
thank you. This command is useful. |
npm config set proxy null
npm config set https-proxy null it will be ok! |
This worked for me on Windows 11, node v18.12.1 and npm 8.19.2 |
I just needed to disable IPV6 :) Tys for your advice guys |
Work for me on Win 11, node v19.7.0, npm 9.6.0 👍 |
same here, thank u guys :) |
npm set strict-ssl false and removing yarn.lock worked for me. |
In my case for the same issue solve the problem this command.
|
If IPv6 is not available: echo "alias npm4='node --dns-result-order=ipv4first /usr/bin/npm'" >> ~/.bashrc
source ~/.bashrc usage: npm4 install package_name |
in my case disabling ipv6 solved the problem:
Add the following lines at the end of the file:
Apply the changes by running the following command: Verify that IPv6 has been disabled by running the following command: |
This worked for me (running kali linux) |
This worked, legend! |
I encountered this issue when my internet connexion was bad, but once I connected in Ethernet, it resolved the hanging point. |
I faced this issue also and after spending few hours I came to know it something related to proxy. I was connected with company vpn, I disconnected proxy and execute |
My firewall was blocking registry.npmjs.org. |
thanks this works for me |
This worked for me. Thanks! Env: 6.2.0-26-generic |
YESSSS, thanks. nothing else worked |
For me it worked by connecting to a diffrenet WIFI network |
I think its solution is to uninstall and install the node again. |
My solution:
2、 3、 |
it work |
Basta apenas rodar o comando abaixo para desabilitar temporariamente o ipv6: # desabilita temporariamente o ipv6 até uma próxima reinicialização do servidor: sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 # Instale seu npm # Habilita novamente o ipv6 caso não queira reiniciar o servidor: sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 |
Is there an existing issue for this?
Current Behavior
After executing
npm install
thesill idealTree buildDeps
step takes a long time (minutes) causing npm@7 working with workspaces slower than npm@6 installing projects separately.It seems that is fetching packages sequentially instead using parallelization.
Vídeo with the demo:
CleanShot.2021-05-18.at.16.07.23.mp4
Expected Behavior
npm install
on npm@7 with workspaces takes less time than npm@6 installing manually each workspace.Steps To Reproduce
npm install
buildDeps
take longer than expected.Some considerations:
More info:
On Travis, builds using npm@6 and installing workspaces manually takes 90s.
Using npm@7 it takes 170s using a single npm install.
Environment
The text was updated successfully, but these errors were encountered: