Laravel 6.x 执行 NPM run watch-poll 报错 [已解决]
尝试用 Laravel 5.8 的方法直接操作过,说找不到 node_modules,因为之前删除了。
之后我删除分支重新再建分支再来,不再删除 node_modules ,按教程走,于是报以下错。
win 10 \ Homestead
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: `NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--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-10-03T11_55_01_147Z-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-10-03T11_55_01_189Z-debug.log
➜ weibo git:(filling-layout-style) ✗
这下,不知又要在这块折腾多久了。
推荐文章: