-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
VS Code acquires lock in node_modules/.staging, making NPM freeze for about 30 seconds #29204
Comments
Also suffering from this atm, it was driving me nuts. Trying out your workaround. |
I'm also seeing this |
I am experiencing this as well. NPM install works once VS Code is closed. |
@mjbvz I tried using that tool but by the time the error occurs,
|
Thanks for all the info. I believe I may have a handle on what is going wrong here. See: #28593 (comment) Closing as a duplicate of #28593 |
Steps to Reproduce:
NPM often hangs on a line such as this:
After a long wait time, npm will output something like (always EPERM, rename):
I'm not sure whether this is random, but VS Code seems not to acquire a lock in .staging very often when editing the settings for instance.
I was also able to confirm VS Code having a handle in .staging using process explorer a few times.
Once, I also got some kind of info popup in VS Code about it not being able to load completions or type definitions or whatever and it also mentioned a file inside the node_modules/.staging directory.
The problem always goes away when closing VS Code.
Apparent fix: adding this to my user settings:
workspace settings
user settings
my package.json
The text was updated successfully, but these errors were encountered: