Problems
Installing npm module "cross-env" states the following error
npm error on every command: EEXIST: file already exists, mkdir 'c:\users\user\appdata\Roaming\npm'
Troubleshoot
- Try re-installing the module -> no luck
- Try installing with "npm install --force --save-dev cross-env" -> no luck
- Try removing npm cache -> no luck
Solutions
Turns out I have put the npm start scripts before actually install the module, which is the cause of the error, DO NOT update the script with the command "cross-env" before installing it.
References