Git Product home page Git Product logo

Comments (5)

0x959 avatar 0x959 commented on May 21, 2024

补充下: 是执行 npm run serve 可以正常启动

DONE Compiled successfully in 9465ms 2:34:35 AM

App running at:

Note that the development build is not optimized.
To create a production build, run npm run build.

from core.

LynMoe avatar LynMoe commented on May 21, 2024

看了看这里有一个相关 issue, 总结一下

方案一: 升级 Node/NPM
方案二: 清除 NPM 缓存(npm cache clean --force)+删除 node_modules+删除 package-lock.json

如果还是不行请附上构建时的 debug 日志

from core.

0x959 avatar 0x959 commented on May 21, 2024

npm: 6.14.7
node 14.7.0
还是不行, 之前我也使用过您说的方法,折腾2天啦,实在搞不定才过来问的。下面是debug.log

root@rssw:/JAVClub_web# cat /root/.npm/_logs/2020-08-08T07_48_34_727Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/root/.nvm/versions/node/v14.7.0/bin/node',
1 verbose cli '/root/.nvm/versions/node/v14.7.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
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: /root/.nvm/versions/node/v14.7.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/JAVClub_web/node_modules/.bin:/root/.nvm/versions/node/v14.7.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
9 verbose lifecycle [email protected]
build: CWD: /root/JAVClub_web
10 silly lifecycle [email protected]build: Args: [ '-c', 'vue-cli-service build' ]
11 silly lifecycle [email protected]
build: Returned: code: 134 signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: vue-cli-service build
13 verbose stack Exit status 134
13 verbose stack at EventEmitter. (/root/.nvm/versions/node/v14.7.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:314:20)
13 verbose stack at ChildProcess. (/root/.nvm/versions/node/v14.7.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:314:20)
13 verbose stack at maybeClose (internal/child_process.js:1051:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid [email protected]
15 verbose cwd /root/JAVClub_web
16 verbose Linux 4.14.129-bbrplus
17 verbose argv "/root/.nvm/versions/node/v14.7.0/bin/node" "/root/.nvm/versions/node/v14.7.0/bin/npm" "run" "build"
18 verbose node v14.7.0
19 verbose npm v6.14.7
20 error code ELIFECYCLE
21 error errno 134
22 error [email protected] build: vue-cli-service build
22 error Exit status 134
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 [ 134, true ]

from core.

LynMoe avatar LynMoe commented on May 21, 2024

看起来一部分是玄学错误

本地构建了一份并发布到了 JAVClub/[email protected] 这里, 直接下载 web.zip 并解压到 dist 目录即可

from core.

0x959 avatar 0x959 commented on May 21, 2024

好的,可以了

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.