electron-builder: Cannot install fcopy-pre-bundled

  • Version: 18.8.1 but issue starts with 18.7.0
  • Target: Ubuntu 14.04

Since version 18.7.0, when installing electron-builder with npm, I get an error with fcopy-pre-bundled:

> fcopy-pre-bundled@0.1.2 install /testproject/node_modules/fcopy-pre-bundled
> node-gyp rebuild

gyp: binding.gyp not found (cwd: /testproject/node_modules/fcopy-pre-bundled) 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/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-79-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /testproject/node_modules/fcopy-pre-bundled
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@^2.1.0 (node_modules/7zip-bin/node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.1.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@^1.0.1 (node_modules/7zip-bin/node_modules/7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/testproject/package.json'
npm WARN toto No description
npm WARN toto No repository field.
npm WARN toto No README data
npm WARN toto No license field.
npm ERR! Linux 4.4.0-79-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" "electron-builder"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! fcopy-pre-bundled@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fcopy-pre-bundled@0.1.2 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fcopy-pre-bundled package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fcopy-pre-bundled
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fcopy-pre-bundled
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /testproject/npm-debug.log

node version: v6.11.0 npm version: 3.10.10

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 7
  • Comments: 15 (8 by maintainers)

Most upvoted comments

@espring Please stop wasting your time. Get rid of NPM and consider to use Yarn.

I cannot test right now but as mentioned in the issue I’m using the LTS version of node: node version: v6.11.0 npm version: 3.10.10

Thanks! It works with Yarn.

We’re running into an issue on node 6, using npm i (switching off of yarn in favor of npm@5) with fcopy-pre-bundled. Yesterday this was building on node 6 just fine (on Travis).