ENOENT: no such file or directory, rename : node_modules/async
I have gone trough follwing error ,when I was updating npm.
npm ERR! path /Users/interlectivethree/firebase/fetchme/server/node_modules/winston/node_modules/async
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/interlectivethree/firebase/fetchme/server/node_modules/winston/node_modules/async' -> '/Users/interlectivethree/firebase/fetchme/server/node_modules/winston/node_modules/.async.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! /Users/interlectivethree/.npm/_logs/2017-07-07T14_17_29_016Z-debug.log
I have done sevarel things like package wise unstall and install ,package relocating .But no success .But I think compleate unstall and reinstall is the best option and follwing commands used.
npm uninstall `ls -1 node_modules | tr '/\n' ' '`
It works like charm.
https://stackoverflow.com/questions/19106284/how-do-you-uninstall-all-dependencies-listed-in-package-json-npm
Comments
Post a Comment