events.js:183抛出未处理的“错误"事件 [英] events.js:183 throw Unhandled 'error' event

查看:153
本文介绍了events.js:183抛出未处理的“错误"事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

系统找不到指定的路径.

The system cannot find the path specified.

events.js:183投掷者//未处理的错误"事件^

events.js:183 throw er; // Unhandled 'error' event ^

错误:生成node_modules \ webpack \ bin \ webpack.js ENOENT在notFoundError(D:\ xampp \ htdocs \ learnlarvel \ node_modules \ cross-spawn \ lib \ enoent.js:6:26)在verifyENOENT(D:\ xampp \ htdocs \ learnlarvel \ node_modules \ cross-spawn \ lib \ enoent.js:40:16)在ChildProcess.cp.emit(D:\ xampp \ htdocs \ learnlarvel \ node_modules \ cross-spawn \ lib \ enoent.js:27:25)在Process.ChildProcess._handle.onexit(内部/child_process.js:198:12)npm ERR!代码ELIFECYCLEnpm ERR!errno 1npm ERR!@开发:跨环境NODE_ENV =开发node_modules/webpack/bin/webpack.js --progress --hide-modules --config = node_modules/laravel-mix/setup/webpack.config.js npm ERR!退出状态1npm ERR!npm ERR!@开发脚本失败.npm ERR!npm可能不是问题.上面可能还有其他日志记录输出.

Error: spawn node_modules\webpack\bin\webpack.js ENOENT at notFoundError (D:\xampp\htdocs\learnlarvel\node_modules\cross-spawn\lib\enoent.js:6:26) at verifyENOENT (D:\xampp\htdocs\learnlarvel\node_modules\cross-spawn\lib\enoent.js:40:16) at ChildProcess.cp.emit (D:\xampp\htdocs\learnlarvel\node_modules\cross-spawn\lib\enoent.js:27:25) at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!可以在以下位置找到此运行的完整日志:npm ERR!C:\ Users \ iSkylarTechnology \ AppData \ Roaming \ npm-cache_logs \ 2019-09-14T11_40_34_967Z-debug.lognpm ERR!代码ELIFECYCLEnpm ERR!errno 1npm ERR!@ dev: npm运行开发npm ERR!退出状态1npm ERR!npm ERR!@ dev脚本失败.npm ERR!npm可能不是问题.上面可能还有其他日志记录输出.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\iSkylarTechnology\AppData\Roaming\npm-cache_logs\2019-09-14T11_40_34_967Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: npm run development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!可以在以下位置找到此运行的完整日志:npm ERR!C:\ Users \ iSkylarTechnology \ AppData \ Roaming \ npm-cache_logs \ 2019-09-14T11_40_35_155Z-debug.log

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\iSkylarTechnology\AppData\Roaming\npm-cache_logs\2019-09-14T11_40_35_155Z-debug.log

推荐答案

删除您的 node_modules 文件夹并删除 package-lock.json .运行 npm cache clear --force ,然后运行 npm install .然后尝试 npm run dev npm run watch .

Delete your node_modules folder and delete package-lock.json. Run npm cache clear --force and then npm install. Then try npm run dev or npm run watch.

这篇关于events.js:183抛出未处理的“错误"事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆