您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> PHP >> laravel54 下运行 cnpm run dev 报错!

laravel54 下运行 cnpm run dev 报错!(2/2)

来源:网络整理     时间:2017/6/30 16:11:29     关键词:

关于网友提出的“ laravel54 下运行 cnpm run dev 报错!”问题疑问,本网通过在网上对“ laravel54 下运行 cnpm run dev 报错!”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: laravel54 下运行 cnpm run dev 报错!
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --c/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
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! A complete log of this run can be found in:
npm ERR!     /Users/zhangchunbo/.npm/_logs/2017-06-28T14_26_52_322Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
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! A complete log of this run can be found in:
npm ERR!     /Users/zhangchunbo/.npm/_logs/2017-06-28T14_26_52_350Z-debug.log

解决方案1:

这个报错:

Cannot find module '/Users/zhangchunbo/www/coding98/node_modules/laravel-mix/setup/webpack.config.js'

说明这个文件不存在,在运行npm run dev之前,需要先npm install,通过package.json配置安装一些依赖包,请确认你已经进行过这个操作。


以上介绍了“ laravel54 下运行 cnpm run dev 报错!”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/4378828_2.html

相关图片

相关文章