Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed at the [email protected] postinstall script 'electron-builder install-app-deps' #45

Open
scarlion1 opened this issue Dec 12, 2017 · 1 comment

Comments

@scarlion1
Copy link

scarlion1 commented Dec 12, 2017

i was trying to compile this on my linux server and getting the error below. It is Debian Wheezy which is oldoldstable but i hope we could get it working.

~/src/bailbloc/desktop$ npm install
npm WARN package.json [email protected] No repository field.
npm WARN engine [email protected]: wanted: {"node":">=6.11.4"} (current: {"node":"4.8.7","npm":"2.15.11"})
npm WARN engine [email protected]: wanted: {"node":">=6.0.0"} (current: {"node":"4.8.7","npm":"2.15.11"})
npm WARN engine [email protected]: wanted: {"node":">=6.11.4"} (current: {"node":"4.8.7","npm":"2.15.11"})
npm WARN engine [email protected]: wanted: {"node":">=6.0.0"} (current: {"node":"4.8.7","npm":"2.15.11"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.8.7","npm":"2.15.11"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.8.7","npm":"2.15.11"})
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: This package is discontinued. Use lodash@^4.0.0.
/
> [email protected] postinstall /home/scar/src/bailbloc/desktop/node_modules/electron
> node install.js

npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
npm WARN engine [email protected]: wanted: {"node":">=6.0.0"} (current: {"node":"4.8.7","npm":"2.15.11"})

> [email protected] install /home/scar/src/bailbloc/desktop/node_modules/electron-builder/node_modules/electron-builder-lib/node_modules/app-package-builder/node_modules/rabin-bindings
> prebuild-install || node-gyp rebuild

prebuild-install info begin Prebuild-install version 2.4.1
prebuild-install info looking for local prebuild @ prebuilds/rabin-bindings-v1.7.4-node-v46-linux-x64.tar.gz
prebuild-install info found local prebuild 
prebuild-install info unpacking @ prebuilds/rabin-bindings-v1.7.4-node-v46-linux-x64.tar.gz
prebuild-install info unpack resolved to /home/scar/src/bailbloc/desktop/node_modules/electron-builder/node_modules/electron-builder-lib/node_modules/app-package-builder/node_modules/rabin-bindings/build/Release/rabin-bindings.node
prebuild-install info unpack required /home/scar/src/bailbloc/desktop/node_modules/electron-builder/node_modules/electron-builder-lib/node_modules/app-package-builder/node_modules/rabin-bindings/build/Release/rabin-bindings.node successfully
prebuild-install info install Successfully installed prebuilt binary!

> [email protected] postinstall /home/scar/src/bailbloc/desktop
> electron-builder install-app-deps

/home/scar/src/bailbloc/desktop/node_modules/electron-builder/out/builder.js:21
    var _ref = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (options, cancellationToken = new (_builderUtilRuntime || _load_builderUtilRuntime()).CancellationToken()) {
                                                                                                          ^

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at _load_builder (/home/scar/src/bailbloc/desktop/node_modules/electron-builder/out/cli/cli.js:80:23)
    at Object.<anonymous> (/home/scar/src/bailbloc/desktop/node_modules/electron-builder/out/cli/cli.js:118:81)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:140:18)
    at node.js:1043:3

npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.8.7
npm ERR! npm  v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `electron-builder install-app-deps`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'electron-builder install-app-deps'.
npm ERR! This is most likely a problem with the bailbloc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron-builder install-app-deps
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bailbloc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls bailbloc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/scar/src/bailbloc/desktop/npm-debug.log


~/src/bailbloc/desktop$ cat /home/scar/src/bailbloc/desktop/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose readDependencies loading dependencies from /home/scar/src/bailbloc/desktop/package.json
5 warn package.json [email protected] No repository field.
6 verbose install where, deps [ '/home/scar/src/bailbloc/desktop',
6 verbose install   [ 'battery-level',
6 verbose install     'electron-log',
6 verbose install     'electron-positioner',
6 verbose install     'electron-settings',
6 verbose install     'electron-updater',
6 verbose install     'is-charging',
6 verbose install     'strip-ansi',
6 verbose install     'uuid',
6 verbose install     'electron',
6 verbose install     'electron-builder',
6 verbose install     'node-icns',
6 verbose install     '7zip-bin-linux' ] ]
7 verbose install where, peers [ '/home/scar/src/bailbloc/desktop', [] ]
8 verbose installManyTop reading for lifecycle /home/scar/src/bailbloc/desktop/package.json
9 info preinstall [email protected]
10 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/7zip-bin-linux/package.json
11 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/battery-level/package.json
12 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/electron/package.json
13 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/electron-builder/package.json
14 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/electron-log/package.json
15 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/electron-positioner/package.json
16 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/electron-settings/package.json
17 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/electron-updater/package.json
18 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/is-charging/package.json
19 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/node-icns/package.json
20 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/strip-ansi/package.json
21 verbose installManyTop reading scoped package data from /home/scar/src/bailbloc/desktop/node_modules/uuid/package.json
22 info package.json [email protected] No README data
23 verbose readDependencies loading dependencies from /home/scar/src/bailbloc/desktop/package.json
24 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/7zip-bin-linux/package.json
25 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/battery-level/package.json
26 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/electron/package.json
27 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/electron-builder/package.json
28 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/electron-log/package.json
29 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/electron-positioner/package.json
30 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/electron-settings/package.json
31 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/electron-updater/package.json
32 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/is-charging/package.json
33 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/node-icns/package.json
34 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/strip-ansi/package.json
35 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/uuid/package.json
36 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/.bin/battery-level/package.json
37 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/.bin/build/package.json
38 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/.bin/electron/package.json
39 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/.bin/electron-builder/package.json
40 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/.bin/install-app-deps/package.json
41 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/.bin/nicns/package.json
42 verbose targetResolver reading package data from /home/scar/src/bailbloc/desktop/node_modules/.bin/uuid/package.json
43 verbose already installed skipping electron@^1.6.11 /home/scar/src/bailbloc/desktop
44 verbose already installed skipping electron-builder@^19.22.1 /home/scar/src/bailbloc/desktop
45 verbose already installed skipping [email protected] /home/scar/src/bailbloc/desktop
46 verbose already installed skipping 7zip-bin-linux@^1.2.0 /home/scar/src/bailbloc/desktop
47 verbose already installed skipping battery-level@^2.0.1 /home/scar/src/bailbloc/desktop
48 verbose already installed skipping electron-log@^2.2.7 /home/scar/src/bailbloc/desktop
49 verbose already installed skipping electron-positioner@^3.0.0 /home/scar/src/bailbloc/desktop
50 verbose already installed skipping electron-settings@^3.1.1 /home/scar/src/bailbloc/desktop
51 verbose already installed skipping electron-updater@^2.8.7 /home/scar/src/bailbloc/desktop
52 verbose already installed skipping is-charging@^1.2.0 /home/scar/src/bailbloc/desktop
53 verbose already installed skipping strip-ansi@^4.0.0 /home/scar/src/bailbloc/desktop
54 verbose already installed skipping uuid@^3.1.0 /home/scar/src/bailbloc/desktop
55 silly install resolved []
56 info build /home/scar/src/bailbloc/desktop
57 info linkStuff [email protected]
58 silly linkStuff [email protected] has /home/scar/src/bailbloc as its parent node_modules
59 verbose linkBins [email protected]
60 verbose linkMans [email protected]
61 verbose rebuildBundles [email protected]
62 verbose rebuildBundles [ '.bin',
62 verbose rebuildBundles   '7zip-bin-linux',
62 verbose rebuildBundles   'battery-level',
62 verbose rebuildBundles   'electron',
62 verbose rebuildBundles   'electron-builder',
62 verbose rebuildBundles   'electron-log',
62 verbose rebuildBundles   'electron-positioner',
62 verbose rebuildBundles   'electron-settings',
62 verbose rebuildBundles   'electron-updater',
62 verbose rebuildBundles   'is-charging',
62 verbose rebuildBundles   'node-icns',
62 verbose rebuildBundles   'strip-ansi',
62 verbose rebuildBundles   'uuid' ]
63 info install [email protected]
64 info postinstall [email protected]
65 verbose unsafe-perm in lifecycle true
66 info [email protected] Failed to exec postinstall script
67 verbose stack Error: [email protected] postinstall: `electron-builder install-app-deps`
67 verbose stack Exit status 1
67 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:217:16)
67 verbose stack     at emitTwo (events.js:87:13)
67 verbose stack     at EventEmitter.emit (events.js:172:7)
67 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
67 verbose stack     at emitTwo (events.js:87:13)
67 verbose stack     at ChildProcess.emit (events.js:172:7)
67 verbose stack     at maybeClose (internal/child_process.js:862:16)
67 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
68 verbose pkgid [email protected]
69 verbose cwd /home/scar/src/bailbloc/desktop
70 error Linux 3.2.0-4-amd64
71 error argv "/usr/bin/node" "/usr/bin/npm" "install"
72 error node v4.8.7
73 error npm  v2.15.11
74 error code ELIFECYCLE
75 error [email protected] postinstall: `electron-builder install-app-deps`
75 error Exit status 1
76 error Failed at the [email protected] postinstall script 'electron-builder install-app-deps'.
76 error This is most likely a problem with the bailbloc package,
76 error not with npm itself.
76 error Tell the author that this fails on your system:
76 error     electron-builder install-app-deps
76 error You can get information on how to open an issue for this project with:
76 error     npm bugs bailbloc
76 error Or if that isn't available, you can get their info via:
76 error
76 error     npm owner ls bailbloc
76 error There is likely additional logging output above.
77 verbose exit [ 1, true ]


@wgwz
Copy link
Contributor

wgwz commented Jan 21, 2018

@scarf Could you try upgrading node? I noticed this in your error log:

{"node":">=6.0.0"} (current: {"node":"4.8.7","npm":"2.15.11"})

Let us know if you found something that works since!

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

No branches or pull requests

2 participants