很突然就在我关闭文件进行压缩后,再重新打开npm报错了npm ERR! code ENOENT

npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'xxx\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

我的解决方法简单粗暴,删掉本地的node_modules以及package-lock.json,npmi nstall–》npm run build就好了

Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐