npm build run命令在最后给出错误

时间:2020-08-06 09:16:11

标签: javascript node.js npm

我还遵循此处提到的相同步骤:npm ERR! code ELIFECYCLE。 但是我仍然收到此错误。该应用程序可以在npm start

上完美运行

我是javascript新手,目前正在从事 saleor.io 的开源项目。 当我运行npm run build的命令时,在输出中出现以下错误:

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! saleor-site@2.10.3 build: `webpack -p`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the saleor-site@2.10.3 build 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/umair/.npm/_logs/2020-08-06T09_09_26_905Z-debug.l

日志的输出是这样的:

17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v12.18.3
19 verbose npm  v6.14.6
20 error code ELIFECYCLE
21 error errno 2
22 error saleor-site@2.10.3 build: `webpack -p`
22 error Exit status 2
23 error Failed at the saleor-site@2.10.3 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]

您能帮我解决我做错的地方吗?

0 个答案:

没有答案