NPM ruin dev 报错,问题可能存在于 mix 这个 module 里,尝试解决了两个星期未果
下面是报错信息,我怀疑是mix的问题,卡了好长时间了
vagrant@homestead:~/Code/weibo$ npm run dev
> @ dev /home/vagrant/Code/weibo
> npm run development
> @ development /home/vagrant/Code/weibo
> NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
78% module and chunk tree optimization unnamed compat plugin/home/vagrant/Code/weibo/node_modules/webpack/lib/Chunk.js:849
throw new Error(
^
Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead
at Chunk.get (/home/vagrant/Code/weibo/node_modules/webpack/lib/Chunk.js:849:9)
at /home/vagrant/Code/weibo/node_modules/laravel-mix/node_modules/extract-text-webpack-plugin/dist/index.js:176:48
at Array.forEach (<anonymous>)
at /home/vagrant/Code/weibo/node_modules/laravel-mix/node_modules/extract-text-webpack-plugin/dist/index.js:171:18
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/vagrant/Code/weibo/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:12:1)
at AsyncSeriesHook.lazyCompileHook (/home/vagrant/Code/weibo/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compilation.seal (/home/vagrant/Code/weibo/node_modules/webpack/lib/Compilation.js:1244:27)
at hooks.make.callAsync.err (/home/vagrant/Code/weibo/node_modules/webpack/lib/Compiler.js:624:17)
at _err0 (eval at create (/home/vagrant/Code/weibo/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:11:1)
at _addModuleChain (/home/vagrant/Code/weibo/node_modules/webpack/lib/Compilation.js:1095:12)
at processModuleDependencies.err (/home/vagrant/Code/weibo/node_modules/webpack/lib/Compilation.js:1007:9)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
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`
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-02-21T07_46_51_048Z-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! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2019-02-21T07_46_51_083Z-debug.log
starkoverflow上有个兄弟和我的报错几乎一致,不过没人回答他的问题:https://stackoverflow.com/questions/545924...
推荐文章: