[英]Laravel Compilation “Error: Cannot Find PATH/node_modules/laravel-mix/..”
When I run commands like:当我运行以下命令时:
npm run dev
npm run watch
to compile my project.编译我的项目。 I receive an error that says the laravel-mix directory does not exist.
我收到一条错误消息,指出 laravel-mix 目录不存在。
Error: Cannot find module 'PATH/node_modules/laravel-mix/setup/webpack.config.js'
I have deleted the node_modules directory and used npm install
to attempt to get it to install properly and it still is not there.我删除了 node_modules 目录并使用
npm install
试图让它正确安装,但它仍然不存在。 "Laravel-mix" is in the package.json file as a dependency, so to my knowledge running npm install
or npm install laravel-mix
should do the trick, but it isn't working. "Laravel-mix" is in the package.json file as a dependency, so to my knowledge running
npm install
or npm install laravel-mix
should do the trick, but it isn't working. Any information about this would be greatly appreciated.任何有关此的信息将不胜感激。
npm -v 6.14.1
node -v 12.16.2
Have you already run the following?您是否已经运行以下命令?
npm install laravel-mix
npm install cross-env
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.