Jacky Tsang
3 min readApr 13, 2018

--

can’t run above instructions without error on npm install after the adding the postinstall.

31682 warn optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-linux@1.3.1 (node_modules/7zip-bin-linux):
31683 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-linux@1.3.1: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
31684 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux
31684 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
31684 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: darwin
31684 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
31685 warn optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@2.2.0 (node_modules/7zip-bin-win):
31686 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.2.0: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
31687 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32
31687 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
31687 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: darwin
31687 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
31688 warn optional SKIPPING OPTIONAL DEPENDENCY: app-builder-bin-linux@1.8.3 (node_modules/app-builder-bin-linux):
31689 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for app-builder-bin-linux@1.8.3: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
31690 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux
31690 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
31690 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: darwin
31690 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
31691 warn optional SKIPPING OPTIONAL DEPENDENCY: app-builder-bin-win@1.8.3 (node_modules/app-builder-bin-win):
31692 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for app-builder-bin-win@1.8.3: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
31693 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32
31693 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
31693 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: darwin
31693 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
31694 warn optional SKIPPING OPTIONAL DEPENDENCY: app-builder-bin-win@1.7.2 (node_modules/dmg-builder/node_modules/app-builder-bin-win):
31695 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for app-builder-bin-win@1.7.2: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
31696 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: win32
31696 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
31696 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: darwin
31696 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
31697 warn optional SKIPPING OPTIONAL DEPENDENCY: app-builder-bin-linux@1.7.2 (node_modules/dmg-builder/node_modules/app-builder-bin-linux):
31698 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for app-builder-bin-linux@1.7.2: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
31699 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: linux
31699 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
31699 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: darwin
31699 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
31700 verbose stack Error: electron@1.8.4 postinstall: `node install.js`
31700 verbose stack Exit status 1
31700 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
31700 verbose stack at emitTwo (events.js:126:13)
31700 verbose stack at EventEmitter.emit (events.js:214:7)
31700 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
31700 verbose stack at emitTwo (events.js:126:13)
31700 verbose stack at ChildProcess.emit (events.js:214:7)
31700 verbose stack at maybeClose (internal/child_process.js:925:16)
31700 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
31701 verbose pkgid electron@1.8.4
31702 verbose cwd /Users/jackytsang/Downloads/electron-realm
31703 verbose Darwin 17.5.0
31704 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
31705 verbose node v8.11.1
31706 verbose npm v5.6.0
31707 error code ELIFECYCLE
31708 error errno 1
31709 error electron@1.8.4 postinstall: `node install.js`
31709 error Exit status 1
31710 error Failed at the electron@1.8.4 postinstall script.
31710 error This is probably not a problem with npm. There is likely additional logging output above.

I am developing on

  • macOS 10.13.4
  • npm 5.6.0
  • node 8.11.1

Does it only work on windows and linux?

--

--

No responses yet