在线部署失败 #24

Closed
opened 2020-03-02 09:01:51 +00:00 by dukecd33369 · 9 comments
dukecd33369 commented 2020-03-02 09:01:51 +00:00 (Migrated from github.com)

npm install 就报错了 用到了fsevents 这个在ubuntu的机器上装不上诶

npm install 就报错了 用到了fsevents 这个在ubuntu的机器上装不上诶
ix64 commented 2020-03-02 09:15:40 +00:00 (Migrated from github.com)

应该不是项目的问题。
我本人使用Ubuntu18.04。CI服务器使用的 Node Docker(Debain9)。
目前都是没有问题的。

建议检查一下npm缓存和设置。

应该不是项目的问题。 我本人使用Ubuntu18.04。[CI服务器](https://ci.ixarea.com/ix64/unlock-music/74/1/2)使用的 Node Docker(Debain9)。 目前都是没有问题的。 建议检查一下npm缓存和设置。
dukecd33369 commented 2020-03-02 09:28:16 +00:00 (Migrated from github.com)

我也是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"})
报了这个

我也是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"}) 报了这个
ix64 commented 2020-03-02 09:33:41 +00:00 (Migrated from github.com)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):

看清楚 这只是自动跳过不符合要求的可选依赖,不会造成部署失败

> npm **WARN optional SKIPPING OPTIONAL DEPENDENCY**: fsevents@1.2.11 (node_modules/fsevents): 看清楚 这只是自动跳过不符合要求的**可选依赖**,不会造成部署失败
dukecd33369 commented 2020-03-02 09:54:40 +00:00 (Migrated from github.com)

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 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. 我这是不是内存不足了?
ix64 commented 2020-03-02 10:00:53 +00:00 (Migrated from github.com)

应该是,可以尝试使用 npm ci 来安装

应该是,可以尝试使用 `npm ci` 来安装
dukecd33369 commented 2020-03-02 10:17:28 +00:00 (Migrated from github.com)

应该是,可以尝试使用 npm ci 来安装

可以诶 查了下ci是npm 6的安装方式?这就可以了

> > > 应该是,可以尝试使用 `npm ci` 来安装 可以诶 查了下ci是npm 6的安装方式?这就可以了
dukecd33369 commented 2020-03-02 10:21:30 +00:00 (Migrated from github.com)

哦 不对 5.7.0开始的

哦 不对 5.7.0开始的
ix64 commented 2020-03-02 10:22:49 +00:00 (Migrated from github.com)

也可能是你npm install过程中网络出错,导致安装不完整。这时应该用 npm clean-install

也可能是你npm install过程中网络出错,导致安装不完整。这时应该用 npm clean-install
ttimasdf commented 2020-03-04 13:02:47 +00:00 (Migrated from github.com)

部署并不需要自己build呀,,这是个静态的web应用,用release里的压缩包,放Github Pages上面都能跑起来,

部署并不需要自己build呀,,这是个静态的web应用,用release里的压缩包,放Github Pages上面都能跑起来,
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: um/web-archived#24
No description provided.