运行NPM安装失败

发布时间:2020-07-07 13:27
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/vagrant/code/node_modules/@fullhuman/postcss-purgecss/node_modules/commander/package.json.630663003
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/vagrant/code/node_modules/@fullhuman/postcss-purgecss/node_modules/commander/package.json.630663003'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

运行npm install时,我一直收到此错误。

我已经删除了node_modules文件夹,packages.json-lock并清除了npm缓存

我正在使用Homestead。

回答1

我无法解决此问题。

我确实知道这是Laravel Homestead的问题,因为Laragon没有问题。我决定暂时使用Laragon。