npm install遇到的坑

还原包的时候遇到的问题 ENOENT: no such file or directory:


错误描述
npm ERR! path H:*\node_modules\fsevents
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access ‘H:*\node_modules\fsevents’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Angular和VUE都有这样的问题

解决方案:删除目录下的node_modules文件夹

然后在执行 npm install 就好了

你可能感兴趣的:(技术问题方案,npm)