I have cloned Microsoft's VSCode Language server. I then change directory to the example I'm interested in (
lsp-samples
) and runnpm install
in that folder.
It quickly dies the the following error message:
npm ERR! code EEXIST
npm ERR! syscall mkdir
npm ERR! path G:\My Drive\Git\vscode-extension-samples\vscode-extension-samples\lsp-samplenode_modules.staging
npm ERR! errno -4075
npm ERR! EEXIST: file already exists, mkdir 'G:\My Drive\Git\vscode-extension-samples\vscode-extension-samples\lsp-samplenode_modules.staging'
npm ERR! File exists: G:\My Drive\Git\vscode-extension-samples\vscode-extension-samples\lsp-samplenode_modules.staging
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
See attached log file.
2020-01-09T17_39_35_413Z-debug.log
is that it complains that the .staging directory already exists, when it is the install process itself that created the folder (when I start, there is no preexisting node_modules folder).
Any idea what the problem might be ? I've tried reinstalling npm, deleting the node_modules folder and starting over, deleting the intermediate .staging folder, using the --force option, to no avail...
I got the same error, though probably different case.
I just did npm update -g
and then after that, npm will no longer work. Here's the screenshot of the whole thing.
To make npm work again, I have to brew reinstall node
:((
Sorry, but I don't understand how this is a duplicate of #611 ... (that said, it may be the same internal mechanism that causes both failures, is this the case?)
In my case npm install -g npm
works fine (first thing I did when it started failing) ; I also performed a npm install -g typescript@latest
without any problem.
Note that every time I do a npm install
it dies with the same EEXIST error, but the thing it complains about varies from one case to the next (even when I totally remove the node_modules folder in between tries): in general existing .staging or .bin folder.
@pythoulon My mistake. Please ignore that 馃槀
No problem...馃榿
same problem here
See https://github.com/npm/cli/issues/611#issuecomment-573035688 if that helps.
More on this. I realized that my development folder is on the special drive created by Google Drive File Stream (the sync engine between Windows' file system and Google Drive).
Out of curiosity, I move the dev folder out of there onto a "real" drive. And voil脿, it works!
So the problem seems to be with the way npm interacts with the virtual file system created by Drive File Stream... I'm going to leave my dev folder out of it...