I have been working on the content creators and rock paper scissors project. When I try and run npm install, I always get this error. It seems to be some folder that doesn’t seem to work. It always fails to install some node module.
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\kwokj\Dropbox\codecademy\1\node_modules\debug
npm ERR! dest C:\Users\kwokj\Dropbox\codecademy\1\node_modules.debug.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\kwokj\Dropbox\codecademy\1\node_modules\debug’ -> ‘C:\Users\kwokj\Dropbox\codecademy\1\node_modules.debug.DELETE’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\kwokj\Dropbox\codecademy\1\node_modules\color-name
npm ERR! dest C:\Users\kwokj\Dropbox\codecademy\1\node_modules.color-name.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\kwokj\Dropbox\codecademy\1\node_modules\color-name’ -> ‘C:\Users\kwokj\Dropbox\codecademy\1\node_modules.color-name.DELETE’
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\kwokj\Dropbox\codecademy\1\node_modules\escape-string-regexp
npm ERR! dest C:\Users\kwokj\Dropbox\codecademy\1\node_modules.escape-string-regexp.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\kwokj\Dropbox\codecademy\1\node_modules\escape-string-regexp’ -> ‘C:\Users\kwokj\Dropbox\codecademy\1\node_modules.escape-string-regexp.DELETE’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
After I run npm install 5-10 times, all packages install. But I have no idea why this is happening.