node10无法build
RudolphBrown opened this issue · 3 comments
RudolphBrown commented
harry@harry-TM1613 ~/Desktop/app/electronic-wechat $ npm run build:linux
electronic-wechat@2.0.0 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 commented
试过sudo npm run build:linux吗
我v10.0.0打包没问题
忘了说我是把electron升到了2.0.0
LoHiaufung commented
lohiaufung@lohiaufung-QTK5:~/Documents/software/electronic-wechat$ sudo npm run build:linux
> electronic-wechat@2.0.0 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 commented
解决方案:npm i electron-packager@12.1.0
, 就是说由于electron-packager模块引起的问题,在12.0.2已被修复。所以更新electron-packager模块至最新版本即可。
参考链接: Cannot run with Node 10 (electron-packager issue)