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

Hydrogen will not install from command line or from within Atom #1431

Closed
rbpatt2019 opened this issue Sep 27, 2018 · 8 comments
Closed

Hydrogen will not install from command line or from within Atom #1431

rbpatt2019 opened this issue Sep 27, 2018 · 8 comments

Comments

@rbpatt2019
Copy link

rbpatt2019 commented Sep 27, 2018

Description:
Hydrogen fails to install either from the command line or from the install console within Atom.

Steps to Reproduce:

From command line (for either default Microsoft terminal or my Anaconda Prompt):

apm install hydrogen

Within Atom, via the install console, clicking install generates a brief download followed by a log being added to the .atom.apm_logs folder in my home directory.

Versions:

Which OS and which version of Hydrogen and Atom are you running?
OS: Windows 10
Atom: 1.31.0
Electron: 2.0.7
Chrome: 61.0.3163.100
Node: 8.9.3
Attempting to install Hydorgen 2.6.0
2018-09-27T20_18_23_592Z-debug.log
2018-09-27T19_05_17_249Z-debug.log

Logs:
The command prompt error looks as follows:

Installing hydrogen to C:\Users\pattersonrb.atom\packages failed

npm ERR! Unexpected end of JSON input while parsing near '...ame":"acorn","version'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\pattersonrb.atom.apm_logs\2018-09-27T19_20_13_437Z-debug.log

Additionally, I've attached one the log reports as a text document. This file is the same regardless of whether I attempt the install via Atom or the command line.
2018-09-27T19_05_17_249Z-debug.log

Have installed a number of other packages successfully without issue.

@JackCaster
Copy link

I am also unable to install Hydrogen under Windows 10 and Atom 1.31.1.
When I run apm install hydrogen, I get the error message saved in the gist: https://gist.github.com/JackCaster/146fad47467cdde99a136890534944f6

If you look at line 98, there are some complains on the Python version not being <3.0. Can this explain the failure?

@BenRussert
Copy link
Member

@JackCaster there is definitely an issue with node gyp if it doesn't find python 2. See this issue.

@JackCaster
Copy link

@JackCaster there is definitely an issue with node gyp if it doesn't find python 2. See this issue.

mmm... it seems the issue you linked to is still unresolved. I am not sure on what I should do next to install Hydrogen. Any suggestions?

@kylebarron
Copy link
Contributor

This had worked for me on a similar issue previously:
atom/atom#15925 (comment)

@JackCaster
Copy link

This had worked for me on a similar issue previously:
atom/atom#15925 (comment)

As suggested, I tried what is described in atom/apm#179 (comment). I created a Conda environment with Python 2.7 and set the path in apm

apm config set python /path/to/python2.7

In the apm script, however, I do not have anything like export npm_config_python="${binDir}/python-interceptor.sh" . In apm.sh I have

#!/bin/sh
"$(dirname "$0")/../app-1.31.1/resources/cli/apm.sh" "$@"

and in apm.cmd I have

@echo off
"%~dp0\..\app-1.31.1\resources\cli\atom.cmd" %*

I also installed node 8.12 which is available in the path.
I then ran apm install hydrogen and the installation fails. The log is available here, and the error in the terminal is

Installing hydrogen to C:\Users\moran\.atom\packages failed

> canvas@1.6.12 install C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\canvas
> node-gyp rebuild


C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Users\moran\AppData\Local\atom\app-1.31.1\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\moran\AppData\Local\atom\app-1.31.1\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\GTK\bin\zlib1.dll
C:\GTK\bin\libexpat-1.dll
C:\GTK\bin\libpng14-14.dll
C:\GTK\bin\libcairo-2.dll
C:\GTK\bin\libfontconfig-1.dll
C:\GTK\bin\libfreetype-6.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".

> zeromq@4.6.0 install C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\zeromq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)


prebuild-install WARN install unexpected end of file

Downloading libzmq for Windows
Download finished

C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\zeromq>if not defined npm_config_node_gyp (node "C:\Users\moran\AppData\Local\atom\app-1.31.1\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\moran\AppData\Local\atom\app-1.31.1\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".

gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin\\node.exe',
gyp verb cli   'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@3.4.0
gyp info using node@8.9.3 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "C:\Miniconda3\envs\python27\python.exe" in the PATH
gyp verb `which` succeeded C:\Miniconda3\envs\python27\python.exe C:\Miniconda3\envs\python27\python.exe
gyp verb check python version `C:\Miniconda3\envs\python27\python.exe -c "import platform; print(platform.python_version());"` returned: "2.7.15\r\n"
gyp verb get node dir compiling against --target node version: 2.0.7
gyp verb command install [ '2.0.7' ]
gyp verb install input version string "2.0.7"
gyp verb install installing version: iojs-2.0.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: iojs-2.0.7
gyp verb build dir attempting to create "build" dir: C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\canvas\build
gyp verb build dir "build" dir needed to be created? C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\canvas\build
gyp verb build/config.gypi creating config file
gyp sill build/config.gypi { target_defaults:
gyp sill build/config.gypi    { cflags: [],
gyp sill build/config.gypi      default_configuration: 'Release',
gyp sill build/config.gypi      defines: [],
gyp sill build/config.gypi      include_dirs: [],
gyp sill build/config.gypi      libraries: [] },
gyp sill build/config.gypi   variables:
gyp sill build/config.gypi    { asan: 0,
gyp sill build/config.gypi      coverage: false,
gyp sill build/config.gypi      debug_devtools: 'node',
gyp sill build/config.gypi      debug_http2: false,
gyp sill build/config.gypi      debug_nghttp2: false,
gyp sill build/config.gypi      force_dynamic_crt: 0,
gyp sill build/config.gypi      host_arch: 'x64',
gyp sill build/config.gypi      icu_data_file: 'icudt59l.dat',
gyp sill build/config.gypi      icu_data_in: '..\\..\\deps/icu-small\\source/data/in\\icudt59l.dat',
gyp sill build/config.gypi      icu_endianness: 'l',
gyp sill build/config.gypi      icu_gyp_path: 'tools/icu/icu-generic.gyp',
gyp sill build/config.gypi      icu_locales: 'en,root',
gyp sill build/config.gypi      icu_path: 'deps/icu-small',
gyp sill build/config.gypi      icu_small: true,
gyp sill build/config.gypi      icu_ver_major: '59',
gyp sill build/config.gypi      node_byteorder: 'little',
gyp sill build/config.gypi      node_enable_d8: false,
gyp sill build/config.gypi      node_enable_v8_vtunejit: false,
gyp sill build/config.gypi      node_install_npm: true,
gyp sill build/config.gypi      node_module_version: 57,
gyp sill build/config.gypi      node_no_browser_globals: false,
gyp sill build/config.gypi      node_prefix: '/usr/local',
gyp sill build/config.gypi      node_release_urlbase: 'https://nodejs.org/download/release/',
gyp sill build/config.gypi      node_shared: false,
gyp sill build/config.gypi      node_shared_cares: false,
gyp sill build/config.gypi      node_shared_http_parser: false,
gyp sill build/config.gypi      node_shared_libuv: false,
gyp sill build/config.gypi      node_shared_openssl: false,
gyp sill build/config.gypi      node_shared_zlib: false,
gyp sill build/config.gypi      node_tag: '',
gyp sill build/config.gypi      node_use_bundled_v8: true,
gyp sill build/config.gypi      node_use_dtrace: false,
gyp sill build/config.gypi      node_use_etw: true,
gyp sill build/config.gypi      node_use_lttng: false,
gyp sill build/config.gypi      node_use_openssl: true,
gyp sill build/config.gypi      node_use_perfctr: true,
gyp sill build/config.gypi      node_use_v8_platform: true,
gyp sill build/config.gypi      node_without_node_options: false,
gyp sill build/config.gypi      openssl_fips: '',
gyp sill build/config.gypi      openssl_no_asm: 0,
gyp sill build/config.gypi      shlib_suffix: 'so.57',
gyp sill build/config.gypi      target_arch: 'x64',
gyp sill build/config.gypi      v8_enable_gdbjit: 0,
gyp sill build/config.gypi      v8_enable_i18n_support: 1,
gyp sill build/config.gypi      v8_enable_inspector: 1,
gyp sill build/config.gypi      v8_no_strict_aliasing: 1,
gyp sill build/config.gypi      v8_optimized_debug: 0,
gyp sill build/config.gypi      v8_promise_internal_field_count: 1,
gyp sill build/config.gypi      v8_random_seed: 0,
gyp sill build/config.gypi      v8_trace_maps: 0,
gyp sill build/config.gypi      v8_use_snapshot: true,
gyp sill build/config.gypi      want_separate_host_toolset: 0,
gyp sill build/config.gypi      nodedir: 'C:\\Users\\moran\\.atom\\.node-gyp\\.node-gyp\\iojs-2.0.7',
gyp sill build/config.gypi      copy_dev_lib: true,
gyp sill build/config.gypi      standalone_static_library: 1,
gyp sill build/config.gypi      access: '',
gyp sill build/config.gypi      allow_same_version: '',
gyp sill build/config.gypi      also: '',
gyp sill build/config.gypi      always_auth: '',
gyp sill build/config.gypi      audit: 'true',
gyp sill build/config.gypi      auth_type: 'legacy',
gyp sill build/config.gypi      bin_links: 'true',
gyp sill build/config.gypi      browser: '',
gyp sill build/config.gypi      ca: '',
gyp sill build/config.gypi      cache: 'C:\\Users\\moran\\.atom\\.apm',
gyp sill build/config.gypi      cache_lock_retries: '10',
gyp sill build/config.gypi      cache_lock_stale: '60000',
gyp sill build/config.gypi      cache_lock_wait: '10000',
gyp sill build/config.gypi      cache_max: 'Infinity',
gyp sill build/config.gypi      cache_min: '10',
gyp sill build/config.gypi      cert: '',
gyp sill build/config.gypi      cidr: '',
gyp sill build/config.gypi      color: 'true',
gyp sill build/config.gypi      commit_hooks: 'true',
gyp sill build/config.gypi      depth: 'Infinity',
gyp sill build/config.gypi      description: 'true',
gyp sill build/config.gypi      dev: '',
gyp sill build/config.gypi      dist_url: 'https://atom.io/download/electron',
gyp sill build/config.gypi      dry_run: '',
gyp sill build/config.gypi      editor: 'notepad.exe',
gyp sill build/config.gypi      engine_strict: '',
gyp sill build/config.gypi      fetch_retries: '2',
gyp sill build/config.gypi      fetch_retry_factor: '10',
gyp sill build/config.gypi      fetch_retry_maxtimeout: '60000',
gyp sill build/config.gypi      fetch_retry_mintimeout: '10000',
gyp sill build/config.gypi      force: '',
gyp sill build/config.gypi      git: 'git',
gyp sill build/config.gypi      git_tag_version: 'true',
gyp sill build/config.gypi      global: '',
gyp sill build/config.gypi      globalconfig: 'C:\\Users\\moran\\.atom\\.apm\\.apmrc',
gyp sill build/config.gypi      globalignorefile: 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin\\etc\\npmignore',
gyp sill build/config.gypi      global_style: 'true',
gyp sill build/config.gypi      group: '',
gyp sill build/config.gypi      ham_it_up: '',
gyp sill build/config.gypi      heading: 'npm',
gyp sill build/config.gypi      https_proxy: '',
gyp sill build/config.gypi      if_present: '',
gyp sill build/config.gypi      ignore_prepublish: '',
gyp sill build/config.gypi      ignore_scripts: '',
gyp sill build/config.gypi      init_author_email: '',
gyp sill build/config.gypi      init_author_name: '',
gyp sill build/config.gypi      init_author_url: '',
gyp sill build/config.gypi      init_license: 'ISC',
gyp sill build/config.gypi      init_module: 'C:\\Users\\moran\\.atom\\.node-gyp\\.npm-init.js',
gyp sill build/config.gypi      init_version: '1.0.0',
gyp sill build/config.gypi      json: '',
gyp sill build/config.gypi      key: '',
gyp sill build/config.gypi      legacy_bundling: '',
gyp sill build/config.gypi      link: '',
gyp sill build/config.gypi      local_address: '',
gyp sill build/config.gypi      logs_max: '10',
gyp sill build/config.gypi      long: '',
gyp sill build/config.gypi      maxsockets: '50',
gyp sill build/config.gypi      message: '%s',
gyp sill build/config.gypi      metrics_registry: 'https://registry.npmjs.org/',
gyp sill build/config.gypi      node_gyp: 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin\\\\..\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp sill build/config.gypi      node_options: '',
gyp sill build/config.gypi      node_version: '8.9.3',
gyp sill build/config.gypi      no_proxy: '',
gyp sill build/config.gypi      offline: '',
gyp sill build/config.gypi      onload_script: '',
gyp sill build/config.gypi      only: '',
gyp sill build/config.gypi      optional: 'true',
gyp sill build/config.gypi      otp: '',
gyp sill build/config.gypi      package_lock: 'true',
gyp sill build/config.gypi      package_lock_only: '',
gyp sill build/config.gypi      parseable: '',
gyp sill build/config.gypi      prefer_offline: '',
gyp sill build/config.gypi      prefer_online: '',
gyp sill build/config.gypi      prefix: 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin',
gyp sill build/config.gypi      production: '',
gyp sill build/config.gypi      progress: '',
gyp sill build/config.gypi      read_only: '',
gyp sill build/config.gypi      rebuild_bundle: 'true',
gyp sill build/config.gypi      registry: 'https://registry.npmjs.org/',
gyp sill build/config.gypi      rollback: 'true',
gyp sill build/config.gypi      runtime: 'electron',
gyp sill build/config.gypi      save: 'true',
gyp sill build/config.gypi      save_bundle: '',
gyp sill build/config.gypi      save_dev: '',
gyp sill build/config.gypi      save_exact: '',
gyp sill build/config.gypi      save_optional: '',
gyp sill build/config.gypi      save_prefix: '^',
gyp sill build/config.gypi      save_prod: '',
gyp sill build/config.gypi      scope: '',
gyp sill build/config.gypi      scripts_prepend_node_path: 'warn-only',
gyp sill build/config.gypi      script_shell: '',
gyp sill build/config.gypi      searchexclude: '',
gyp sill build/config.gypi      searchlimit: '20',
gyp sill build/config.gypi      searchopts: '',
gyp sill build/config.gypi      searchstaleness: '900',
gyp sill build/config.gypi      send_metrics: '',
gyp sill build/config.gypi      shell: 'C:\\WINDOWS\\system32\\cmd.exe',
gyp sill build/config.gypi      shrinkwrap: 'true',
gyp sill build/config.gypi      sign_git_commit: '',
gyp sill build/config.gypi      sign_git_tag: '',
gyp sill build/config.gypi      sso_poll_frequency: '500',
gyp sill build/config.gypi      sso_type: 'oauth',
gyp sill build/config.gypi      strict_ssl: 'true',
gyp sill build/config.gypi      tag: 'latest',
gyp sill build/config.gypi      tag_version_prefix: 'v',
gyp sill build/config.gypi      target: '2.0.7',
gyp sill build/config.gypi      timing: '',
gyp sill build/config.gypi      tmp: 'C:\\Users\\moran\\AppData\\Local\\Temp',
gyp sill build/config.gypi      umask: '0000',
gyp sill build/config.gypi      unicode: '',
gyp sill build/config.gypi      unsafe_perm: 'true',
gyp sill build/config.gypi      update_notifier: 'true',
gyp sill build/config.gypi      usage: '',
gyp sill build/config.gypi      user: '',
gyp sill build/config.gypi      userconfig: 'C:\\Users\\moran\\.atom\\.apmrc',
gyp sill build/config.gypi      user_agent: 'npm/6.2.0 node/v8.9.3 win32 x64',
gyp sill build/config.gypi      version: '',
gyp sill build/config.gypi      versions: '',
gyp sill build/config.gypi      viewer: 'browser' } }
gyp verb build/config.gypi writing out config file: C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\canvas\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\canvas\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\canvas\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Miniconda3\envs\python27\python.exe
gyp info spawn args [ 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\moran\\AppData\\Local\\Temp\\apm-install-dir-11891-15488-1fsle7d.5unz\\node_modules\\Hydrogen\\node_modules\\canvas\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\moran\\.atom\\.node-gyp\\.node-gyp\\iojs-2.0.7\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\moran\\.atom\\.node-gyp\\.node-gyp\\iojs-2.0.7',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=iojs.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\moran\\AppData\\Local\\Temp\\apm-install-dir-11891-15488-1fsle7d.5unz\\node_modules\\Hydrogen\\node_modules\\canvas',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\moran\\AppData\\Local\\Temp\\apm-install-dir-11891-15488-1fsle7d.5unz\\node_modules\\Hydrogen\\node_modules\\canvas\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\moran\.atom\.node-gyp\.node-gyp\iojs-2.0.7
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp verb "Release" dir needed to be created? C:\Users\moran\.atom\.node-gyp\.node-gyp\iojs-2.0.7\Release
gyp verb copying "iojs.lib" for x64 C:\Users\moran\.atom\.node-gyp\.node-gyp\iojs-2.0.7\Release\iojs.lib
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\moran\AppData\Local\atom\app-1.31.1\resources\app\apm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\canvas
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin\\node.exe',
gyp verb cli   'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@3.4.0
gyp info using node@8.9.3 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "C:\Miniconda3\envs\python27\python.exe" in the PATH
gyp verb `which` succeeded C:\Miniconda3\envs\python27\python.exe C:\Miniconda3\envs\python27\python.exe
gyp verb check python version `C:\Miniconda3\envs\python27\python.exe -c "import platform; print(platform.python_version());"` returned: "2.7.15\r\n"
gyp verb get node dir compiling against --target node version: 2.0.7
gyp verb command install [ '2.0.7' ]
gyp verb install input version string "2.0.7"
gyp verb install installing version: iojs-2.0.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: iojs-2.0.7
gyp verb build dir attempting to create "build" dir: C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\zeromq\build
gyp verb build dir "build" dir needed to be created? C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\zeromq\build
gyp verb build/config.gypi creating config file
gyp sill build/config.gypi { target_defaults:
gyp sill build/config.gypi    { cflags: [],
gyp sill build/config.gypi      default_configuration: 'Release',
gyp sill build/config.gypi      defines: [],
gyp sill build/config.gypi      include_dirs: [],
gyp sill build/config.gypi      libraries: [] },
gyp sill build/config.gypi   variables:
gyp sill build/config.gypi    { asan: 0,
gyp sill build/config.gypi      coverage: false,
gyp sill build/config.gypi      debug_devtools: 'node',
gyp sill build/config.gypi      debug_http2: false,
gyp sill build/config.gypi      debug_nghttp2: false,
gyp sill build/config.gypi      force_dynamic_crt: 0,
gyp sill build/config.gypi      host_arch: 'x64',
gyp sill build/config.gypi      icu_data_file: 'icudt59l.dat',
gyp sill build/config.gypi      icu_data_in: '..\\..\\deps/icu-small\\source/data/in\\icudt59l.dat',
gyp sill build/config.gypi      icu_endianness: 'l',
gyp sill build/config.gypi      icu_gyp_path: 'tools/icu/icu-generic.gyp',
gyp sill build/config.gypi      icu_locales: 'en,root',
gyp sill build/config.gypi      icu_path: 'deps/icu-small',
gyp sill build/config.gypi      icu_small: true,
gyp sill build/config.gypi      icu_ver_major: '59',
gyp sill build/config.gypi      node_byteorder: 'little',
gyp sill build/config.gypi      node_enable_d8: false,
gyp sill build/config.gypi      node_enable_v8_vtunejit: false,
gyp sill build/config.gypi      node_install_npm: true,
gyp sill build/config.gypi      node_module_version: 57,
gyp sill build/config.gypi      node_no_browser_globals: false,
gyp sill build/config.gypi      node_prefix: '/usr/local',
gyp sill build/config.gypi      node_release_urlbase: 'https://nodejs.org/download/release/',
gyp sill build/config.gypi      node_shared: false,
gyp sill build/config.gypi      node_shared_cares: false,
gyp sill build/config.gypi      node_shared_http_parser: false,
gyp sill build/config.gypi      node_shared_libuv: false,
gyp sill build/config.gypi      node_shared_openssl: false,
gyp sill build/config.gypi      node_shared_zlib: false,
gyp sill build/config.gypi      node_tag: '',
gyp sill build/config.gypi      node_use_bundled_v8: true,
gyp sill build/config.gypi      node_use_dtrace: false,
gyp sill build/config.gypi      node_use_etw: true,
gyp sill build/config.gypi      node_use_lttng: false,
gyp sill build/config.gypi      node_use_openssl: true,
gyp sill build/config.gypi      node_use_perfctr: true,
gyp sill build/config.gypi      node_use_v8_platform: true,
gyp sill build/config.gypi      node_without_node_options: false,
gyp sill build/config.gypi      openssl_fips: '',
gyp sill build/config.gypi      openssl_no_asm: 0,
gyp sill build/config.gypi      shlib_suffix: 'so.57',
gyp sill build/config.gypi      target_arch: 'x64',
gyp sill build/config.gypi      v8_enable_gdbjit: 0,
gyp sill build/config.gypi      v8_enable_i18n_support: 1,
gyp sill build/config.gypi      v8_enable_inspector: 1,
gyp sill build/config.gypi      v8_no_strict_aliasing: 1,
gyp sill build/config.gypi      v8_optimized_debug: 0,
gyp sill build/config.gypi      v8_promise_internal_field_count: 1,
gyp sill build/config.gypi      v8_random_seed: 0,
gyp sill build/config.gypi      v8_trace_maps: 0,
gyp sill build/config.gypi      v8_use_snapshot: true,
gyp sill build/config.gypi      want_separate_host_toolset: 0,
gyp sill build/config.gypi      nodedir: 'C:\\Users\\moran\\.atom\\.node-gyp\\.node-gyp\\iojs-2.0.7',
gyp sill build/config.gypi      copy_dev_lib: true,
gyp sill build/config.gypi      standalone_static_library: 1,
gyp sill build/config.gypi      access: '',
gyp sill build/config.gypi      allow_same_version: '',
gyp sill build/config.gypi      also: '',
gyp sill build/config.gypi      always_auth: '',
gyp sill build/config.gypi      audit: 'true',
gyp sill build/config.gypi      auth_type: 'legacy',
gyp sill build/config.gypi      bin_links: 'true',
gyp sill build/config.gypi      browser: '',
gyp sill build/config.gypi      ca: '',
gyp sill build/config.gypi      cache: 'C:\\Users\\moran\\.atom\\.apm',
gyp sill build/config.gypi      cache_lock_retries: '10',
gyp sill build/config.gypi      cache_lock_stale: '60000',
gyp sill build/config.gypi      cache_lock_wait: '10000',
gyp sill build/config.gypi      cache_max: 'Infinity',
gyp sill build/config.gypi      cache_min: '10',
gyp sill build/config.gypi      cert: '',
gyp sill build/config.gypi      cidr: '',
gyp sill build/config.gypi      color: 'true',
gyp sill build/config.gypi      commit_hooks: 'true',
gyp sill build/config.gypi      depth: 'Infinity',
gyp sill build/config.gypi      description: 'true',
gyp sill build/config.gypi      dev: '',
gyp sill build/config.gypi      dist_url: 'https://atom.io/download/electron',
gyp sill build/config.gypi      dry_run: '',
gyp sill build/config.gypi      editor: 'notepad.exe',
gyp sill build/config.gypi      engine_strict: '',
gyp sill build/config.gypi      fetch_retries: '2',
gyp sill build/config.gypi      fetch_retry_factor: '10',
gyp sill build/config.gypi      fetch_retry_maxtimeout: '60000',
gyp sill build/config.gypi      fetch_retry_mintimeout: '10000',
gyp sill build/config.gypi      force: '',
gyp sill build/config.gypi      git: 'git',
gyp sill build/config.gypi      git_tag_version: 'true',
gyp sill build/config.gypi      global: '',
gyp sill build/config.gypi      globalconfig: 'C:\\Users\\moran\\.atom\\.apm\\.apmrc',
gyp sill build/config.gypi      globalignorefile: 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin\\etc\\npmignore',
gyp sill build/config.gypi      global_style: 'true',
gyp sill build/config.gypi      group: '',
gyp sill build/config.gypi      ham_it_up: '',
gyp sill build/config.gypi      heading: 'npm',
gyp sill build/config.gypi      https_proxy: '',
gyp sill build/config.gypi      if_present: '',
gyp sill build/config.gypi      ignore_prepublish: '',
gyp sill build/config.gypi      ignore_scripts: '',
gyp sill build/config.gypi      init_author_email: '',
gyp sill build/config.gypi      init_author_name: '',
gyp sill build/config.gypi      init_author_url: '',
gyp sill build/config.gypi      init_license: 'ISC',
gyp sill build/config.gypi      init_module: 'C:\\Users\\moran\\.atom\\.node-gyp\\.npm-init.js',
gyp sill build/config.gypi      init_version: '1.0.0',
gyp sill build/config.gypi      json: '',
gyp sill build/config.gypi      key: '',
gyp sill build/config.gypi      legacy_bundling: '',
gyp sill build/config.gypi      link: '',
gyp sill build/config.gypi      local_address: '',
gyp sill build/config.gypi      logs_max: '10',
gyp sill build/config.gypi      long: '',
gyp sill build/config.gypi      maxsockets: '50',
gyp sill build/config.gypi      message: '%s',
gyp sill build/config.gypi      metrics_registry: 'https://registry.npmjs.org/',
gyp sill build/config.gypi      node_gyp: 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin\\\\..\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp sill build/config.gypi      node_options: '',
gyp sill build/config.gypi      node_version: '8.9.3',
gyp sill build/config.gypi      no_proxy: '',
gyp sill build/config.gypi      offline: '',
gyp sill build/config.gypi      onload_script: '',
gyp sill build/config.gypi      only: '',
gyp sill build/config.gypi      optional: 'true',
gyp sill build/config.gypi      otp: '',
gyp sill build/config.gypi      package_lock: 'true',
gyp sill build/config.gypi      package_lock_only: '',
gyp sill build/config.gypi      parseable: '',
gyp sill build/config.gypi      prefer_offline: '',
gyp sill build/config.gypi      prefer_online: '',
gyp sill build/config.gypi      prefix: 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin',
gyp sill build/config.gypi      production: '',
gyp sill build/config.gypi      progress: '',
gyp sill build/config.gypi      read_only: '',
gyp sill build/config.gypi      rebuild_bundle: 'true',
gyp sill build/config.gypi      registry: 'https://registry.npmjs.org/',
gyp sill build/config.gypi      rollback: 'true',
gyp sill build/config.gypi      runtime: 'electron',
gyp sill build/config.gypi      save: 'true',
gyp sill build/config.gypi      save_bundle: '',
gyp sill build/config.gypi      save_dev: '',
gyp sill build/config.gypi      save_exact: '',
gyp sill build/config.gypi      save_optional: '',
gyp sill build/config.gypi      save_prefix: '^',
gyp sill build/config.gypi      save_prod: '',
gyp sill build/config.gypi      scope: '',
gyp sill build/config.gypi      scripts_prepend_node_path: 'warn-only',
gyp sill build/config.gypi      script_shell: '',
gyp sill build/config.gypi      searchexclude: '',
gyp sill build/config.gypi      searchlimit: '20',
gyp sill build/config.gypi      searchopts: '',
gyp sill build/config.gypi      searchstaleness: '900',
gyp sill build/config.gypi      send_metrics: '',
gyp sill build/config.gypi      shell: 'C:\\WINDOWS\\system32\\cmd.exe',
gyp sill build/config.gypi      shrinkwrap: 'true',
gyp sill build/config.gypi      sign_git_commit: '',
gyp sill build/config.gypi      sign_git_tag: '',
gyp sill build/config.gypi      sso_poll_frequency: '500',
gyp sill build/config.gypi      sso_type: 'oauth',
gyp sill build/config.gypi      strict_ssl: 'true',
gyp sill build/config.gypi      tag: 'latest',
gyp sill build/config.gypi      tag_version_prefix: 'v',
gyp sill build/config.gypi      target: '2.0.7',
gyp sill build/config.gypi      timing: '',
gyp sill build/config.gypi      tmp: 'C:\\Users\\moran\\AppData\\Local\\Temp',
gyp sill build/config.gypi      umask: '0000',
gyp sill build/config.gypi      unicode: '',
gyp sill build/config.gypi      unsafe_perm: 'true',
gyp sill build/config.gypi      update_notifier: 'true',
gyp sill build/config.gypi      usage: '',
gyp sill build/config.gypi      user: '',
gyp sill build/config.gypi      userconfig: 'C:\\Users\\moran\\.atom\\.apmrc',
gyp sill build/config.gypi      user_agent: 'npm/6.2.0 node/v8.9.3 win32 x64',
gyp sill build/config.gypi      version: '',
gyp sill build/config.gypi      versions: '',
gyp sill build/config.gypi      viewer: 'browser' } }
gyp verb build/config.gypi writing out config file: C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\zeromq\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\zeromq\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\zeromq\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Miniconda3\envs\python27\python.exe
gyp info spawn args [ 'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\moran\\AppData\\Local\\Temp\\apm-install-dir-11891-15488-1fsle7d.5unz\\node_modules\\Hydrogen\\node_modules\\zeromq\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\moran\\.atom\\.node-gyp\\.node-gyp\\iojs-2.0.7\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\moran\\.atom\\.node-gyp\\.node-gyp\\iojs-2.0.7',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=iojs.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\moran\\AppData\\Local\\Temp\\apm-install-dir-11891-15488-1fsle7d.5unz\\node_modules\\Hydrogen\\node_modules\\zeromq',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\moran\\AppData\\Local\\Temp\\apm-install-dir-11891-15488-1fsle7d.5unz\\node_modules\\Hydrogen\\node_modules\\zeromq\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\moran\.atom\.node-gyp\.node-gyp\iojs-2.0.7
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp verb "Release" dir needed to be created? null
gyp verb copying "iojs.lib" for x64 C:\Users\moran\.atom\.node-gyp\.node-gyp\iojs-2.0.7\Release\iojs.lib
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\moran\AppData\Local\atom\app-1.31.1\resources\app\apm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\moran\\AppData\\Local\\atom\\app-1.31.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\node_modules\Hydrogen\node_modules\zeromq
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\moran\AppData\Local\Temp\apm-install-dir-11891-15488-1fsle7d.5unz\package.json'
npm WARN react-rangeslider@2.2.0 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN commonmark-react-renderer@4.3.4 requires a peer of commonmark@^0.27.0 || ^0.26.0 || ^0.24.0 but none is installed. You must install peer dependencies yourself.
npm WARN apm-install-dir-11891-15488-1fsle7d.5unz No description
npm WARN apm-install-dir-11891-15488-1fsle7d.5unz No repository field.
npm WARN apm-install-dir-11891-15488-1fsle7d.5unz No README data
npm WARN apm-install-dir-11891-15488-1fsle7d.5unz No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.12 (node_modules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.12 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zeromq@4.6.0 install: `node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zeromq@4.6.0 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:\Users\moran\.atom\.apm\_logs\2018-10-01T09_16_16_553Z-debug.log

I see it complains about:

gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

which is weird, as

node -v
v8.12.0

@FaxMan1
Copy link

FaxMan1 commented Jun 6, 2019

When installing Hydrogen, I get the following error:

$ apm install hydrogen
Installing hydrogen to C:\Users\hkri\.atom\packages failed

> zeromq@5.1.0 install C:\Users\hkri\AppData\Local\Temp\apm-install-dir-11956-14696-of4xdf.tv5is\node_modules\Hydrogen\node_modules\zeromq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)


npm WARN deprecated @nteract/transforms@4.4.7: This package has been deprecated. Please access each transform through its own package.
npm WARN deprecated @nteract/display-area@4.4.8: This package has been deprecated in favor of @nteract/outputs.
npm WARN lifecycle npm is using C:\Users\hkri\AppData\Local\atom\app-1.37.0\resources\app\apm\bin\node.exe but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
'node' is not recognized as an internal or external command,
operable program or batch file.
'node' is not recognized as an internal or external command,
operable program or batch file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\hkri\AppData\Local\Temp\apm-install-dir-11956-14696-of4xdf.tv5is\package.json'
npm WARN react-rangeslider@2.2.0 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN vega-themes@2.3.0 requires a peer of vega@* but none is installed. You must install peer dependencies yourself.
npm WARN apm-install-dir-11956-14696-of4xdf.tv5is No description
npm WARN apm-install-dir-11956-14696-of4xdf.tv5is No repository field.
npm WARN apm-install-dir-11956-14696-of4xdf.tv5is No README data
npm WARN apm-install-dir-11956-14696-of4xdf.tv5is No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zeromq@5.1.0 install: `node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zeromq@5.1.0 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:\Users\hkri\.atom\.apm\_logs\2019-06-06T12_53_41_652Z-debug.log

Shall I upload the log file as well?

@n-riesco
Copy link
Collaborator

n-riesco commented Jun 6, 2019

@FaxMan1 I don't know about the warnings, but the error installing zeromq often happens when your machine is behind a proxy or it doesn't have access to github. See #1585 for a workaround.

@wadethestealth
Copy link
Member

Stale issue relating to installation, which is generally handled by apm and not hydrogen

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

No branches or pull requests

7 participants