npm run build报错
来源:13-1 Header

qq_向日葵_13
2017-08-30
G:\react\dianping-project\m10f3h>npm run build
> react-dianping-webpack@1.0.0 build G:\react\dianping-project\m10f3h
> set NODE_ENV=production && webpack --config ./webpack.production.config.js --progress --colors
66% 393/417 build modulesG:\react\dianping-project\m10f3h\node_modules\webpack\lib\TemplatedPathPlugin.js:50
if(!allowEmpty) throw new Error("Path variable " + match + " not implemented in this context: " + input);
^
Error: Path variable [chunkhash:8] not implemented in this context: fonts/icomoon.[chunkhash:8].svg
at G:\react\dianping-project\m10f3h\node_modules\webpack\lib\TemplatedPathPlugin.js:50:26
at G:\react\dianping-project\m10f3h\node_modules\webpack\lib\TemplatedPathPlugin.js:40:23
at RegExp.[Symbol.replace] (native)
at RegExp.[Symbol.replace] (native)
at String.replace (native)
at Template.replacePathVariables (G:\react\dianping-project\m10f3h\node_modules\webpack\lib\TemplatedPathPlugin.js:71:4)
at Template.applyPlugins [as applyPluginsWaterfall] (G:\react\dianping-project\m10f3h\node_modules\tapable\lib\Tapable.js:37:47)
at Compilation.getPath (G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compilation.js:882:27)
at Compilation.<anonymous> (G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compilation.js:821:21)
at Array.forEach (native)
at Compilation.createChunkAssets (G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compilation.js:820:31)
at Compilation.<anonymous> (G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compilation.js:557:8)
at Compilation.applyPluginsAsync (G:\react\dianping-project\m10f3h\node_modules\tapable\lib\Tapable.js:60:69)
at Compilation.seal (G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compilation.js:525:7)
at Compiler.<anonymous> (G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compiler.js:397:15)
at G:\react\dianping-project\m10f3h\node_modules\tapable\lib\Tapable.js:103:11
at Compilation.<anonymous> (G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compilation.js:445:10)
at G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compilation.js:417:12
at G:\react\dianping-project\m10f3h\node_modules\webpack\lib\Compilation.js:332:10
at G:\react\dianping-project\m10f3h\node_modules\async\lib\async.js:52:16
at done (G:\react\dianping-project\m10f3h\node_modules\async\lib\async.js:246:17)
at G:\react\dianping-project\m10f3h\node_modules\async\lib\async.js:44:16
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! react-dianping-webpack@1.0.0 build: `set NODE_ENV=production && webpack --config ./webpack.production.config.js --progress --colors`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-dianping-webpack@1.0.0 build script 'set NODE_ENV=production && webpack --config ./webpack.production.config.js --progress --colors'.
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 react-dianping-webpack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! set NODE_ENV=production && webpack --config ./webpack.production.config.js --progress --colors
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-dianping-webpack
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-dianping-webpack
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! G:\react\dianping-project\m10f3h\npm-debug.log
1回答
-
双越
2017-08-30
后面有一节视频,将的如何处理 build 报错,你找一下。找不到的话,去QQ群问一下
00
相似问题