简体   繁体   English

Laravel 编译“错误:找不到 PATH/node_modules/laravel-mix/..”

[英]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.

相关问题 Laravel-mix-BrowserSync在event.js上引发错误:160 - Laravel-mix - BrowserSync throwing an error at event.js:160 错误:找不到模块“ mongodb / node_modules / bson” - Error: Cannot find module 'mongodb/node_modules/bson' Laravel中的node_modules文件夹是什么? - What is the node_modules folder for in Laravel? Laravel-mix 输出路径为 js 和 sass 输出两个不同的错误路径 - Laravel-mix output path is outputting two different wrong paths for both js and sass 找不到模块'node_modules / formidable' - Cannot find module 'node_modules/formidable' NPM安装Laravel-Mix给出错误:“超出了最大调用堆栈大小” - NPM install Laravel-Mix gives error: “Maximum call stack size exceeded” 节点在dockerized node app中找不到node_modules - Node cannot find node_modules in dockerized node app 节点 js:错误:找不到模块“mime-types/node_modules/mime-db” - Node js: Error: Cannot find module 'mime-types/node_modules/mime-db' 运行节点脚本时出错,找不到模块'mongodb / node_modules / bson' - Error when running node script , Cannot find module 'mongodb/node_modules/bson' 节点 Nodemon 错误:找不到模块 'C:\\Program Files\\nodejs\\node_modules\\nodemon\\bin\\' - Node Nodemon Error: Cannot find module 'C:\Program Files\nodejs\node_modules\nodemon\bin\'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM