Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm error on every command: EEXIST: file already exists, mkdir 'c:\users\user\appdata\Roaming\npm'

I'm just new to node and npm and this is frustrating.

Well it's almost all said in the title. On a Windows 10 x64 using a NON elevated prompt, all npm commands shows:

EEXIST: file already exists, mkdir 'c:\Users\Josep\AppData\Roaming\npm'
at Error (native)

Even npm -v shows it twice before the version number.

Not hapening in an elevated prompt. version numbers differ in an elevated and a user prompt.

Double checked PATH variable. Same on two cmd windows.

Node version 6.10.0

NPM Versions: 4.3.0 at elevated prompt and 3.10.10 at a user prompt.

like image 843
JoeCool Avatar asked Mar 08 '17 18:03

JoeCool


People also ask

What is Eexist error?

EEXIST. The EEXIST error is another filesystem error that is encountered whenever a file or directory exists, but the attempted operation requires it not to exist.


1 Answers

In my case remove white space from folder name.

like image 166
shubham Avatar answered Sep 28 '22 02:09

shubham