I am getting an error when running npm install
. It complains about not finding the module /node_modules/ansistyles... that folder does indeed not exist, but there is one with a dash: /node_modules/ansi-styles.
npm install
npm WARN [email protected] No repository field.
npm ERR! path /app/node_modules/npm/node_modules/ansistyles
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/app/node_modules/npm/node_modules/ansistyles' -> '/app/node_modules/npm/node_modules/.ansistyles.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /.npm/_logs/2018-02-01T13_20_48_203Z-debug.log
I also ran into the same error when running cordova plugin remove
or cordova plugin add
.
Removing package-lock.json
did the trick on my Mac!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With