keenwon / egg-webpack-starter Goto Github PK
View Code? Open in Web Editor NEWegg + webpack
License: MIT License
egg + webpack
License: MIT License
随便配置一个别名,会找不到对应路径
npm run build
npm run start
0 info it worked if it ends with ok
1 verbose cli [ '/Users/.nvm/versions/node/v10.12.0/bin/node',
1 verbose cli '/Users/.nvm/versions/node/v10.12.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'start' ]
2 info using npm@6.11.2
3 info using node@v10.12.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle egg-webpack-starter@1.0.0~prestart: egg-webpack-starter@1.0.0
6 info lifecycle egg-webpack-starter@1.0.0~start: egg-webpack-starter@1.0.0
7 verbose lifecycle egg-webpack-starter@1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle egg-webpack-starter@1.0.0~start: PATH: /Users/.nvm/versions/node/v10.12.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/pro/Egg-Webpack-Starter/node_modules/.bin:/Users/.nvm/versions/node/v10.12.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
9 verbose lifecycle egg-webpack-starter@1.0.0~start: CWD: /Users/pro/Egg-Webpack-Starter
10 silly lifecycle egg-webpack-starter@1.0.0~start: Args: [ '-c', 'egg-scripts start --daemon' ]
11 silly lifecycle egg-webpack-starter@1.0.0~start: Returned: code: 1 signal: null
12 info lifecycle egg-webpack-starter@1.0.0~start: Failed to exec start script
13 verbose stack Error: egg-webpack-starter@1.0.0 start: `egg-scripts start --daemon`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/Users/.nvm/versions/node/v10.12.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.<anonymous> (/Users/.nvm/versions/node/v10.12.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:962:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid egg-webpack-starter@1.0.0
15 verbose cwd /Users/pro/Egg-Webpack-Starter
16 verbose Darwin 18.7.0
17 verbose argv "/Users/.nvm/versions/node/v10.12.0/bin/node" "/Users/.nvm/versions/node/v10.12.0/bin/npm" "run" "start"
18 verbose node v10.12.0
19 verbose npm v6.11.2
20 error code ELIFECYCLE
21 error errno 1
22 error egg-webpack-starter@1.0.0 start: `egg-scripts start --daemon`
22 error Exit status 1
23 error Failed at the egg-webpack-starter@1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit
npm run build vendor报错
0 info it worked if it ends with ok
1 verbose cli [ '/Users/.nvm/versions/node/v10.12.0/bin/node',
1 verbose cli '/Users/.nvm/versions/node/v10.12.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: /Users/.nvm/versions/node/v10.12.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/pri/wc-fe/node_modules/.bin:/Users/.nvm/versions/node/v10.12.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/pri/wc-fe/node_modules/.bin
9 verbose lifecycle [email protected]~build: CWD: /Users/pri/wc-fe
10 silly lifecycle [email protected]~build: Args: [ '-c',
10 silly lifecycle 'rimraf ./app/public/static && NODE_ENV=production webpack' ]
11 silly lifecycle [email protected]~build: Returned: code: 2 signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `rimraf ./app/public/static && NODE_ENV=production webpack`
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.<anonymous> (/Users/.nvm/versions/node/v10.12.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.<anonymous> (/Users/.nvm/versions/node/v10.12.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:962:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/pri/wc-fe
16 verbose Darwin 18.7.0
17 verbose argv "/Users/.nvm/versions/node/v10.12.0/bin/node" "/Users/.nvm/versions/node/v10.12.0/bin/npm" "run" "build"
18 verbose node v10.12.0
19 verbose npm v6.11.2
20 error code ELIFECYCLE
21 error errno 2
22 error [email protected] build: `rimraf ./app/public/static && NODE_ENV=production webpack`
22 error Exit status 2
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, tru
2019-12-26 18:25:14,117 ERROR 71940 nodejs.TypeError: compilation.getPathWithInfo is not a function
at compilation.hooks.additionalChunkAssets.tap (/Users/pri/Egg-Webpack-Starter/node_modules/webpack/lib/HotModuleReplacementPlugin.js:287:26)
at SyncHook.eval [as call] (eval at create (/Users/pri/Egg-Webpack-Starter/node_modules/tapable/lib/HookCodeFactory.js:19:10), :7:1)
at SyncHook.lazyCompileHook (/Users/pri/Egg-Webpack-Starter/node_modules/tapable/lib/Hook.js:154:20)
at hooks.optimizeTree.callAsync.err (/Users/pri/Egg-Webpack-Starter/node_modules/webpack-tool/node_modules/webpack/lib/Compilation.js:1299:37)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/pri/Egg-Webpack-Starter/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/pri/Egg-Webpack-Starter/node_modules/tapable/lib/Hook.js:154:20)
at Compilation.seal (/Users/pri/Egg-Webpack-Starter/node_modules/webpack-tool/node_modules/webpack/lib/Compilation.js:1242:27)
at hooks.make.callAsync.err (/Users/pri/Egg-Webpack-Starter/node_modules/webpack-tool/node_modules/webpack/lib/Compiler.js:550:17)
at _err0 (eval at create (/Users/pri/Egg-Webpack-Starter/node_modules/tapable/lib/HookCodeFactory.js:33:10), :11:1)
at _addModuleChain (/Users/pri/Egg-Webpack-Starter/node_modules/webpack-tool/node_modules/webpack/lib/Compilation.js:1093:12)
at processModuleDependencies.err (/Users/pri/Egg-Webpack-Starter/node_modules/webpack-tool/node_modules/webpack/lib/Compilation.js:1005:9)
at process._tickCallback (internal/process/next_tick.js:61:11)
pid: 71940
hostname: localhost
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.