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

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 2

前不久也遇到这个状况,把node_modules删除,在输入npm nistall

3年前 评论

以前遇到过这个问题,有好几个小伙伴已经给出答案了,可以搜一下。 建议替换成 yarn,重新安装的时候加上 --no-bin-links --save-dev 这样的参数。

3年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!