在线部署失败 #24
Labels
No Label
bug
dependencies
discuss
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
timeout
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: um/web-archived#24
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
npm install 就报错了 用到了fsevents 这个在ubuntu的机器上装不上诶
应该不是项目的问题。
我本人使用Ubuntu18.04。CI服务器使用的 Node Docker(Debain9)。
目前都是没有问题的。
建议检查一下npm缓存和设置。
我也是18.04
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
报了这个
看清楚 这只是自动跳过不符合要求的可选依赖,不会造成部署失败
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! unlock-music@1.3.2 build:
vue-cli-service build
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the unlock-music@1.3.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
我这是不是内存不足了?
应该是,可以尝试使用
npm ci
来安装可以诶 查了下ci是npm 6的安装方式?这就可以了
哦 不对 5.7.0开始的
也可能是你npm install过程中网络出错,导致安装不完整。这时应该用 npm clean-install
部署并不需要自己build呀,,这是个静态的web应用,用release里的压缩包,放Github Pages上面都能跑起来,