现在是这个错
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch" "--watch-poll"
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! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_376Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: npm run development -- --watch "--watch-poll"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch 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! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_501Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch-poll: npm run watch -- --watch-poll
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch-poll 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! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_529Z-debug.log
都用过了,你这些方法还是无效
有人帮忙看一下吗
试下安装这个?
怎么解决的,分享一下呀 :joy:
@666666
试试重新安装vendor:
1、$ rm -rf node_modules
2、$ yarn config set registry https://registry.npm.taobao.org
3、$ yarn install --no-bin-links
4、修改项目根目录下的 package.json 文件
5、运行 npm run watch-poll --no-bin-links
6、重启虚拟机 —— vagrant reload --provision
详情可查看这里 -> 博客:在学习教程中,总是遇到的一些坑(记录一下解决方法)
现在是这个错
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development:
NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch" "--watch-poll"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! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_376Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch:
npm run development -- --watch "--watch-poll"npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch 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! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_501Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch-poll:
npm run watch -- --watch-pollnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch-poll 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! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_529Z-debug.log
都用过了,你这些方法还是无效
@666666 你删除依赖重新安装,然后
然后在启动试下 @问答:Laravel6.5 NPM run dev 报错 环境是 Homestead