nuxt-community / electron-template

Electron starter with nuxt.js
MIT License
252 stars 31 forks source link

404 error after nuxt build #35

Closed lefuturiste closed 5 years ago

lefuturiste commented 5 years ago

When I want to build my app which work fine in development mode:

npm run build

After the successful nuxt build, I got this error:

Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
  • electron-builder version=20.39.0
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=dist/builder-effective-config.yaml
  • rebuilding native production dependencies platform=linux arch=x64

Error: /usr/bin/node exited with code 1
Output:

> lzma-native@3.0.8 install /mnt/data/workspace/retrobox/desktop/node_modules/lzma-native
> node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build

Failed to execute '/usr/bin/node /usr/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/binding-v3.0.8-electron-v2.0-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/binding-v3.0.8-electron-v2.0-linux-x64' (1)

Error output:
node-pre-gyp ERR! Tried to download(404): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-electron-v2.0-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and electron@2.0.0-beta.7 (electron-v2.0 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-electron-v2.0-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and electron@2.0.0-beta.7 (electron-v2.0 ABI, glibc) (falling back to source compile with node-gyp) 
gyp: Call to 'sh liblzma-config.sh "/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/build" "/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.0.0-arch1-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/binding-v3.0.8-electron-v2.0-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/binding-v3.0.8-electron-v2.0-linux-x64"
gyp ERR! cwd /mnt/data/workspace/retrobox/desktop/node_modules/lzma-native
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/binding-v3.0.8-electron-v2.0-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/binding-v3.0.8-electron-v2.0-linux-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 5.0.0-arch1-1-ARCH
node-pre-gyp ERR! command "/usr/bin/node" "/mnt/data/workspace/retrobox/desktop/node_modules/lzma-native/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /mnt/data/workspace/retrobox/desktop/node_modules/lzma-native
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
This question is available on Nuxt community (#c30)
ghost commented 5 years ago

This issue as been imported as question since it does not respect electron-template issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/electron-template/issues/c30.