ipfs / ipfs-desktop

An unobtrusive and user-friendly desktop application for IPFS on Windows, Mac and Linux.
https://docs.ipfs.tech/install/ipfs-desktop/
MIT License
5.99k stars 865 forks source link

Can't build on Windows 10 #681

Closed NatoBoram closed 5 years ago

NatoBoram commented 5 years ago

I thought this had to be a separate issue from #677.


Following #676, I also tried to build it on Windows 10.

image

As with the previous attempt, only the new branch could build. And it's not pretty.

 npm i; npm start;

> fs-ext@github:baudehlo/node-fs-ext#7c9824f3dc330e795aa13359d96252860bd3a684 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext
> node-gyp configure build

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" configure build )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

> rabin@1.6.0 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=10.11.0 runtime=node arch=x64 platform=win32)

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

> electron@3.0.7 postinstall C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron
> node install.js

... and 1 more

> ipfs-desktop@1.0.0 postinstall C:\Users\natob\Documents\GitHub\ipfs-desktop
> electron-builder install-app-deps

  • electron-builder version=20.28.4
  • loaded configuration file=package.json ("build" field)
  • rebuilding native production dependencies platform=win32 arch=x64
Error: C:\ProgramData\scoop\apps\nodejs\current\node.exe exited with code 1
Output:

> secp256k1@3.5.2 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\secp256k1
> npm run rebuild || echo "Secp256k1 bindings compilation fail. Pure JS implementation will be used."

> secp256k1@3.5.2 rebuild C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\secp256k1
> node-gyp rebuild

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\secp256k1>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
"Secp256k1 bindings compilation fail. Pure JS implementation will be used."

> leveldown@3.0.2 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\leveldown
> prebuild-install || node-gyp rebuild

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\leveldown>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

Error output:
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\secp256k1
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! secp256k1@3.5.2 rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the secp256k1@3.5.2 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\ProgramData\scoop\persist\nodejs\cache\_logs\2018-11-03T04_47_59_525Z-debug.log
prebuild-install WARN install No prebuilt binaries found (target=3.0.7 runtime=electron arch=x64 platform=win32)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\leveldown
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! leveldown@3.0.2 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown@3.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\ProgramData\scoop\persist\nodejs\cache\_logs\2018-11-03T04_48_00_575Z-debug.log

    at ChildProcess.childProcess.once.code (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\builder-util\src\util.ts:254:14)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
From previous event:
    at rebuild (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\app-builder-lib\out\util\yarn.js:239:18)
    at C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\app-builder-lib\src\util\yarn.ts:20:11
From previous event:
    at installOrRebuild (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\app-builder-lib\out\util\yarn.js:68:17)
    at C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\src\cli\install-app-deps.ts:56:9
    at Generator.next (<anonymous>)
From previous event:
    at installAppDeps (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\out\cli\install-app-deps.js:174:17)
    at then (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\src\cli\cli.ts:42:48)
    at runCallback (timers.js:694:18)
    at tryOnImmediate (timers.js:665:5)
    at processImmediate (timers.js:647:5)
From previous event:
    at Object.args [as handler] (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\src\cli\cli.ts:42:48)
    at Object.runCommand (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\yargs\lib\command.js:238:44)
    at Object.parseArgs [as _parseArgs] (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\yargs\yargs.js:1059:30)
    at Object.get [as argv] (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\yargs\yargs.js:1000:21)
    at Object.<anonymous> (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\src\cli\cli.ts:25:28)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:279:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ipfs-desktop@1.0.0 postinstall: `electron-builder install-app-deps`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ipfs-desktop@1.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\ProgramData\scoop\persist\nodejs\cache\_logs\2018-11-03T04_48_00_685Z-debug.log

> ipfs-desktop@1.0.0 start C:\Users\natob\Documents\GitHub\ipfs-desktop
> cross-env NODE_ENV=development electron -r @babel/register src/index.js

2018-11-03T04:48:04.561Z info: Logger set up. Logs can be found on C:\Users\natob\AppData\Roaming\Electron
2018-11-03T04:48:05.255Z info: Menubar is ready
2018-11-03T04:48:05.273Z info: Hash download shortcut disabled
2018-11-03T04:48:05.282Z info: Screenshot shortcut disabled
2018-11-03T04:48:05.351Z info: Launch on startup disabled
2018-11-03T04:48:09.787Z info: Launch on startup enabled
2018-11-03T04:48:11.073Z info: Screenshot shortcut enabled
2018-11-03T04:48:12.057Z info: Hash download shortcut enabled
2018-11-03T04:48:14.888Z info: Disconnecting all IPFS instances
2018-11-03T04:48:14.889Z info: Done. Quitting app
2018-11-03T04:48:20.752Z info: WebUI window ready

And now that we're at it, I might also give the errors when trying to build the master branch.


Here's what happens when I try to build the master branch.

npm i; npm start;

> fs-ext@github:baudehlo/node-fs-ext#7c9824f3dc330e795aa13359d96252860bd3a684 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext
> node-gyp configure build

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" configure build )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

> rabin@1.6.0 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=10.11.0 runtime=node arch=x64 platform=win32)

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

> electron@3.0.7 postinstall C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron
> node install.js

... and 1 more

> ipfs-desktop@1.0.0 postinstall C:\Users\natob\Documents\GitHub\ipfs-desktop
> electron-builder install-app-deps

  • electron-builder version=20.28.4
  • loaded configuration file=package.json ("build" field)
  • rebuilding native production dependencies platform=win32 arch=x64
Error: C:\ProgramData\scoop\apps\nodejs\current\node.exe exited with code 1
Output:

> secp256k1@3.5.2 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\secp256k1
> npm run rebuild || echo "Secp256k1 bindings compilation fail. Pure JS implementation will be used."

> secp256k1@3.5.2 rebuild C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\secp256k1
> node-gyp rebuild

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\secp256k1>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
"Secp256k1 bindings compilation fail. Pure JS implementation will be used."

> leveldown@3.0.2 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\leveldown
> prebuild-install || node-gyp rebuild

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\leveldown>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

Error output:
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\secp256k1
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! secp256k1@3.5.2 rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the secp256k1@3.5.2 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\ProgramData\scoop\persist\nodejs\cache\_logs\2018-11-03T04_47_59_525Z-debug.log
prebuild-install WARN install No prebuilt binaries found (target=3.0.7 runtime=electron arch=x64 platform=win32)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\leveldown
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! leveldown@3.0.2 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown@3.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\ProgramData\scoop\persist\nodejs\cache\_logs\2018-11-03T04_48_00_575Z-debug.log

    at ChildProcess.childProcess.once.code (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\builder-util\src\util.ts:254:14)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
From previous event:
    at rebuild (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\app-builder-lib\out\util\yarn.js:239:18)
    at C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\app-builder-lib\src\util\yarn.ts:20:11
From previous event:
    at installOrRebuild (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\app-builder-lib\out\util\yarn.js:68:17)
    at C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\src\cli\install-app-deps.ts:56:9
    at Generator.next (<anonymous>)
From previous event:
    at installAppDeps (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\out\cli\install-app-deps.js:174:17)
    at then (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\src\cli\cli.ts:42:48)
    at runCallback (timers.js:694:18)
    at tryOnImmediate (timers.js:665:5)
    at processImmediate (timers.js:647:5)
From previous event:
    at Object.args [as handler] (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\src\cli\cli.ts:42:48)
    at Object.runCommand (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\yargs\lib\command.js:238:44)
    at Object.parseArgs [as _parseArgs] (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\yargs\yargs.js:1059:30)
    at Object.get [as argv] (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\yargs\yargs.js:1000:21)
    at Object.<anonymous> (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-builder\src\cli\cli.ts:25:28)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:279:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ipfs-desktop@1.0.0 postinstall: `electron-builder install-app-deps`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ipfs-desktop@1.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\ProgramData\scoop\persist\nodejs\cache\_logs\2018-11-03T04_48_00_685Z-debug.log

> ipfs-desktop@1.0.0 start C:\Users\natob\Documents\GitHub\ipfs-desktop
> cross-env NODE_ENV=development electron -r @babel/register src/index.js

PS C:\Users\natob\Documents\GitHub\ipfs-desktop> npm i; npm start;
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated nomnom@1.6.2: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated wrench@1.5.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0

> electron-chromedriver@2.0.0 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-chromedriver
> node ./download-chromedriver.js

successfully downloaded and extracted!

> fs-ext@1.2.1 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext
> node-gyp configure build

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" configure build )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\fs-ext
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

> rabin@1.6.0 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=10.11.0 runtime=node arch=x64 platform=win32)

C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin>if not defined npm_config_node_gyp (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\ProgramData\scoop\persist\nodejs\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\ProgramData\\scoop\\persist\\nodejs\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rabin
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

> electron-forge@5.2.2 install C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-forge
> node tabtab-install.js

User shell undefined not supported, skipping completion install

> electron@2.0.7 postinstall C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\electron-prebuilt-compile\node_modules\electron
> node install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-aegir@1.0.1 requires a peer of eslint@^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: electron-installer-redhat@0.5.0 (node_modules\electron-installer-redhat):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for electron-installer-redhat@0.5.0: wanted {"os":"darwin,linux","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: electron-installer-flatpak@0.8.0 (node_modules\electron-installer-flatpak):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for electron-installer-flatpak@0.8.0: wanted {"os":"darwin,linux","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: electron-installer-debian@0.8.1 (node_modules\electron-installer-debian):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for electron-installer-debian@0.8.1: wanted {"os":"darwin,linux","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: appdmg@0.4.5 (node_modules\appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for appdmg@0.4.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@1.2.1 (node_modules\fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@1.2.1 install: `node-gyp configure build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: rabin@1.6.0 (node_modules\rabin):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: rabin@1.6.0 install: `prebuild-install || node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 1379 packages from 2184 contributors, removed 316 packages, updated 48 packages, moved 43 packages and audited 33950 packages in 131.316s
found 25 vulnerabilities (6 low, 6 moderate, 13 high)
  run `npm audit fix` to fix them, or `npm audit` for details

> ipfs-desktop@0.5.0 start C:\Users\natob\Documents\GitHub\ipfs-desktop
> electron-forge start

√ Checking your system
√ Locating Application
× Preparing native dependencies: 0 / 1

An unhandled error has occurred inside Forge:
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\Users\\natob\\Documents\\GitHub\\ipfs-desktop\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=2.0.7" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=gcstats" "--module_path=C:\\Users\\natob\\Documents\\GitHub\\ipfs-desktop\\node_modules\\gc-stats\\build\\gcstats\\v1.2.0\\Release\\electron-v2.0-win32-x64" "--remote_path=./gcstats/v1.2.0/Release/" "--package_name=electron-v2.0-win32-x64.tar.gz" "--host=https://node-binaries.s3.amazonaws.com"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\gc-stats
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

Failed with exit code: 1
Error: gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\ProgramData\scoop\shims\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\Users\\natob\\Documents\\GitHub\\ipfs-desktop\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=2.0.7" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=gcstats" "--module_path=C:\\Users\\natob\\Documents\\GitHub\\ipfs-desktop\\node_modules\\gc-stats\\build\\gcstats\\v1.2.0\\Release\\electron-v2.0-win32-x64" "--remote_path=./gcstats/v1.2.0/Release/" "--package_name=electron-v2.0-win32-x64.tar.gz" "--host=https://node-binaries.s3.amazonaws.com"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\gc-stats
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

Failed with exit code: 1
    at SafeSubscriber._error (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\spawn-rx\lib\src\index.js:277:84)
    at SafeSubscriber.__tryOrUnsub (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:242:16)
    at SafeSubscriber.error (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:201:26)
    at Subscriber._error (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:132:26)
    at Subscriber.error (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:106:18)
    at MapSubscriber.Subscriber._error (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:132:26)
    at MapSubscriber.Subscriber.error (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:106:18)
    at SafeSubscriber._next (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\spawn-rx\lib\src\index.js:251:65)
    at SafeSubscriber.__tryOrSetError (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:251:16)
    at SafeSubscriber.next (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:191:27)
    at Subscriber._next (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:129:26)
    at Subscriber.next (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:93:18)
    at DefaultIfEmptySubscriber._next (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\operators\defaultIfEmpty.js:67:26)
    at DefaultIfEmptySubscriber.Subscriber.next (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:93:18)
    at TakeLastSubscriber._complete (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\operators\takeLast.js:102:29)
    at TakeLastSubscriber.Subscriber.complete (C:\Users\natob\Documents\GitHub\ipfs-desktop\node_modules\rxjs\Subscriber.js:118:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ipfs-desktop@0.5.0 start: `electron-forge start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ipfs-desktop@0.5.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\ProgramData\scoop\persist\nodejs\cache\_logs\2018-11-03T04_54_39_744Z-debug.log
hacdias commented 5 years ago

To build on windows, you need windows-build-tools. I can assure you it will work since it's the platform I use 😄 Do not forget though that new isn't finished.

NatoBoram commented 5 years ago

Can this be mentioned in the README.md?

hacdias commented 5 years ago

Done!