Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

node10无法build #650

Open
RudolphBrown opened this issue May 14, 2018 · 3 comments
Open

node10无法build #650

RudolphBrown opened this issue May 14, 2018 · 3 comments

Comments

@RudolphBrown
Copy link

RudolphBrown commented May 14, 2018

harry@harry-TM1613 ~/Desktop/app/electronic-wechat $ npm run build:linux

[email protected] build:linux /home/harry/Desktop/app/electronic-wechat
./scripts/build.sh linux x64

Start packaging for linux x64.
CANNOT RUN WITH NODE 10.0.0
Electron Packager requires Node 4.0 or above.

node10运行不了? linux版本.

前端新手,问题没深度,请见谅.

@kooritea
Copy link

kooritea commented May 17, 2018

试过sudo npm run build:linux吗
我v10.0.0打包没问题

忘了说我是把electron升到了2.0.0

@LoHiaufung
Copy link

lohiaufung@lohiaufung-QTK5:~/Documents/software/electronic-wechat$ sudo npm run build:linux

> [email protected] build:linux /home/lohiaufung/Documents/software/electronic-wechat
> ./scripts/build.sh linux x64

Start packaging for linux x64.
CANNOT RUN WITH NODE 10.0.0
Electron Packager requires Node 4.0 or above.

用sudo也是不行啊

@Southhill
Copy link

解决方案:npm i [email protected], 就是说由于electron-packager模块引起的问题,在12.0.2已被修复。所以更新electron-packager模块至最新版本即可。
参考链接: Cannot run with Node 10 (electron-packager issue)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants