laravel如何安装mix的,怎么允许npm install报很多错
我在项目根目录npm install 出现这些错误,有么有碰到过的?
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/vagrant/code/quickstart/node_modules/css-loader/node_modules/schema-utils/package.json.2732869445
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/vagrant/code/quickstart/node_modules/css-loader/node_modules/schema-utils/package.json.2732869445’
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! /root/.npm/_logs/2021-03-16T04_21_01_357Z-debug.log
前不久也遇到这个状况,把node_modules删除,在输入npm nistall
以前遇到过这个问题,有好几个小伙伴已经给出答案了,可以搜一下。 建议替换成 yarn,重新安装的时候加上 --no-bin-links --save-dev 这样的参数。