You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may not specifically be a Rush bug, although it is a very easy way to demonstrate the issue.
Under Windows when using VSCode with Rush to add packages or other similar operations that cause node_modules folder to be purged/relinked the following error will occur quite often:
ERROR: Error: Error: EPERM: operation not permitted, mkdir 'C:\XXXXX\node_modules'
Often this is caused by a file lock from a process such as your text editor, command prompt, or "gulp serve"
This appears to be due to TSServer within VSCode holding a reference to the node_modules folder. I believe this may be due to a directory watch that is being done to find new type definitions, but have not confirmed this yet.
It appears the root cause was discovered to be this electron bug: electron/node#97 and is fixed in VSCode Insiders and will be fixed in the next stable version of VSCode.
This may not specifically be a Rush bug, although it is a very easy way to demonstrate the issue.
Under Windows when using VSCode with Rush to add packages or other similar operations that cause
node_modules
folder to be purged/relinked the following error will occur quite often:This appears to be due to TSServer within VSCode holding a reference to the node_modules folder. I believe this may be due to a directory watch that is being done to find new type definitions, but have not confirmed this yet.
Link to gitter discussion
Possible related VSCode issues:
microsoft/vscode#68576 (comment)
microsoft/TypeScript#29407
The text was updated successfully, but these errors were encountered: