npm run build 错误

tho 2023-3-14 302

⠦ Building for production...Killed npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! wf-web-chat@0.1.0 build: vue-cli-service build --skip-plugins @vue/cli-plugin-eslint npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the wf-web-chat@0.1.0 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/wfvue/.npm/_logs/2023-03-14T02_53_58_971Z-debug.log checkout modification tar: dist: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors ssh: Could not resolve hostname wfccn: Name or service not known lost connection ssh: Could not resolve hostname wfccn: Name or service not known

最新回复 (2)
  • tho 2023-3-14
    引用 2

    '''shell ⠦ Building for production...Killed npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! wf-web-chat@0.1.0 build: vue-cli-service build --skip-plugins @vue/cli-plugin-eslint npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the wf-web-chat@0.1.0 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/wfvue/.npm/_logs/2023-03-14T02_53_58_971Z-debug.log checkout modification tar: dist: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors ssh: Could not resolve hostname wfccn: Name or service not known lost connection ssh: Could not resolve hostname wfccn: Name or service not known '''

  • tho 2023-3-14
    引用 3
    抱歉,一直在搜索code ELIFECYCLE。搜索errno 137后得知是内存不足。开启虚拟内存后解决了。
返回