npm run dev->未命名的compat插件,与babel / webpack / laravel-mix相关吗?

时间:2019-03-27 12:11:41

标签: npm webpack laravel-5.5 babel laravel-mix

我的项目的npm run开发会产生错误。

我读了一篇建议在全球范围内安装node_modules的帖子。

有一些需要解决的依赖关系,我已经解决了。

(希望)最终的阻止者是,在没有悬而未决的依赖关系的情况下,我无法完成npm run dev,并且在浏览器控制台中有一个与babel相关的浏览器消息。

CLI错误消息:

> npm run development


> @ development D:\xampp-php7.3\htdocs\tests\www.example.com
> cross-env 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 pluginD:\xampp-php7.3\htdocs\tests\www.example.com\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 (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\Chunk.js:849:9)
    at D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\extract-text-webpack-plugin\dist\index.js:176:48
    at Array.forEach (<anonymous>)
    at D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\extract-text-webpack-plugin\dist\index.js:171:18
    at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:12:1)
    at AsyncSeriesHook.lazyCompileHook (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\tapable\lib\Hook.js:154:20)
    at Compilation.seal (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\Compilation.js:1244:27)
    at hooks.make.callAsync.err (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\Compiler.js:624:17)
    at _err0 (eval at create (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:11:1)
    at _addModuleChain (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\Compilation.js:1095:12)
    at processModuleDependencies.err (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\Compilation.js:1007:9)
    at processTicksAndRejections (internal/process/next_tick.js:74:9)

npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\laptop\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "development"
npm ERR! node v11.8.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
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 '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! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     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! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\xampp-php7.3\htdocs\tests\www.example.com\npm-debug.log

npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\laptop\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v11.8.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script 'npm run development'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run development
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\xampp-php7.3\htdocs\tests\www.example.com\npm-debug.log

以及浏览器控制台消息:

app.js:78 Uncaught Error: Module build failed: Error: Cannot find module '@babel/core'
 babel-loader@8 requires Babel 7.x (the package '@babel/core'). If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'.
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:611:15)
    at Function.Module._load (internal/modules/cjs/loader.js:537:25)
    at Module.require (internal/modules/cjs/loader.js:665:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\babel-loader\lib\index.js:10:11)
    at Module._compile (internal/modules/cjs/loader.js:736:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
    at Function.Module._load (internal/modules/cjs/loader.js:560:3)
    at Module.require (internal/modules/cjs/loader.js:665:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at loadLoader (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\loader-runner\lib\loadLoader.js:18:17)
    at iteratePitchingLoaders (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
    at runLoaders (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\loader-runner\lib\LoaderRunner.js:365:2)
    at NormalModule.doBuild (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\NormalModule.js:182:3)
    at NormalModule.build (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\NormalModule.js:275:15)
    at Compilation.buildModule (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\Compilation.js:157:10)
    at factoryCallback (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\Compilation.js:348:12)
    at factory (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\NormalModuleFactory.js:243:5)
    at applyPluginsAsyncWaterfall (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\NormalModuleFactory.js:94:13)
    at D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\tapable\lib\Tapable.js:268:11
    at NormalModuleFactory.params.normalModuleFactory.plugin (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\CompatibilityPlugin.js:52:5)
    at NormalModuleFactory.applyPluginsAsyncWaterfall (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\tapable\lib\Tapable.js:272:13)
    at resolver (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\NormalModuleFactory.js:69:10)
    at process.nextTick (D:\xampp-php7.3\htdocs\tests\www.example.com\node_modules\webpack\lib\NormalModuleFactory.js:196:7)
    at processTicksAndRejections (internal/process/next_tick.js:74:9)
    at Object.<anonymous> (http://www.example.com/js/app.js:78:7)
    at __webpack_require__ (http://www.example.com/js/app.js:20:30)
    at Object.<anonymous> (http://www.example.com/js/app.js:70:1)
    at __webpack_require__ (http://www.example.com/js/app.js:20:30)
    at http://www.example.com/js/app.js:63:18
    at http://www.example.com/js/app.js:66:10
(anonymous) @ app.js:78
__webpack_require__ @ app.js:20
(anonymous) @ app.js:70
__webpack_require__ @ app.js:20
(anonymous) @ app.js:63
(anonymous) @ app.js:66

0 个答案:

没有答案