Description:
Can't install hydrogen package. Neither per GUI nor per console apm install hydrogen. Might be closely related to https://github.com/nteract/hydrogen/issues/1308 and maybe to the Windows 10 April update.
Steps to Reproduce:
For me it's the following:
Versions:
C:\Users\carsten\Desktop
$ ver
Microsoft Windows [Version 10.0.17134.112] (Windows 10 Home)
C:\Users\carsten\Desktop
$ atom --version
Atom : 1.28.0
Electron: 2.0.3
Chrome : 61.0.3163.100
Node : 8.9.3
C:\Users\carsten\Desktop
$ apm --version
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.28.0
python 2.7.13
git 2.11.0.windows.2
visual studio 2015
Logs:
C:\Users\carsten\Desktop
$ apm install hydrogen
Installing hydrogen to C:\Users\carsten\.atom\packages failed
> [email protected] install C:\Users\carsten\AppData\Local\Temp\apm-install
-dir-11862-12896-1hksja0.rlxwvfs9k9\node_modules\Hydrogen\node_modules\
canvas
> node-gyp rebuild
C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11862-12896-1hksja0
.rlxwvfs9k9\node_modules\Hydrogen\node_modules\canvas>if not defined np
m_config_node_gyp (node "C:\Users\carsten\AppData\Local\atom\app-1.28.0
\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_module
s\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\carsten\App
Data\Local\atom\app-1.28.0\resources\app\apm\bin\\..\node_modules\node-
gyp\bin\node-gyp.js" rebuild )
> [email protected] install C:\Users\carsten\AppData\Local\Temp\apm-install-
dir-11862-12896-1hksja0.rlxwvfs9k9\node_modules\Hydrogen\node_modules\z
eromq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && no
de-gyp rebuild)
The system cannot find the path specified.
Downloading libzmq for Windows
Download finished
C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11862-12896-1hksja0
.rlxwvfs9k9\node_modules\Hydrogen\node_modules\zeromq>if not defined np
m_config_node_gyp (node "C:\Users\carsten\AppData\Local\atom\app-1.28.0
\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_module
s\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\carsten\App
Data\Local\atom\app-1.28.0\resources\app\apm\bin\\..\node_modules\node-
gyp\bin\node-gyp.js" rebuild )
C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11862-12896-1hksja0
.rlxwvfs9k9
`-- (empty)
The system cannot find the path specified.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in
binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\carsten\AppData\L
ocal\atom\app-1.28.0\resources\app\apm\node_modules\node-gyp\lib\config
ure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\carsten\\AppData\\Local\\atom\\app-1.28.0\
\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\carsten\\AppData\\Loca
l\\atom\\app-1.28.0\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\
node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11862-
12896-1hksja0.rlxwvfs9k9\node_modules\Hydrogen\node_modules\canvas
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
The system cannot find the path specified.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in
binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\carsten\AppData\L
ocal\atom\app-1.28.0\resources\app\apm\node_modules\node-gyp\lib\config
ure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\carsten\\AppData\\Local\\atom\\app-1.28.0\
\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\carsten\\AppData\\Loca
l\\atom\\app-1.28.0\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\
node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11862-
12896-1hksja0.rlxwvfs9k9\node_modules\Hydrogen\node_modules\zeromq
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\carst
en\AppData\Local\Temp\apm-install-dir-11862-12896-1hksja0.rlxwvfs9k9\pa
ckage.json'
npm WARN [email protected] requires a peer of react@^0.14.0 || ^1
5.0.0 but none was installed.
npm WARN [email protected] requires a peer of commonmark@
^0.27.0 || ^0.26.0 || ^0.24.0 but none was installed.
npm WARN apm-install-dir-11862-12896-1hksja0.rlxwvfs9k9 No description
npm WARN apm-install-dir-11862-12896-1hksja0.rlxwvfs9k9 No repository f
ield.
npm WARN apm-install-dir-11862-12896-1hksja0.rlxwvfs9k9 No README data
npm WARN apm-install-dir-11862-12896-1hksja0.rlxwvfs9k9 No license fiel
d.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_mod
ules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install:
`node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\\Users\\carsten\\AppData\\Local\\atom\\app-1.28.0\\re
sources\\app\\apm\\bin\\node.exe" "C:\\Users\\carsten\\AppData\\Local\\
atom\\app-1.28.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.
js" "--globalconfig" "C:\\Users\\carsten\\.atom\\.apm\\.apmrc" "--userc
onfig" "C:\\Users\\carsten\\.atom\\.apmrc" "install" "C:\\Users\\carste
n\\AppData\\Local\\Temp\\d-11862-12896-1duo5w7.xu0sf0qkt9\\package.tgz"
"--runtime=electron" "--target=2.0.3" "--arch=x64" "--global-style" "-
-msvs_version=2015"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node scripts/prebuild-install.js || (no
de scripts/preinstall.js && node-gyp rebuild)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node scripts/prebui
ld-install.js || (node scripts/preinstall.js && node-gyp rebuild)'.
npm ERR! Make sure you have the latest version of node.js and npm insta
lled.
npm ERR! If you do, this is most likely a problem with the zeromq packa
ge,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/prebuild-install.js || (node scripts/preinsta
ll.js && node-gyp rebuild)
npm ERR! You can get information on how to open an issue for this proje
ct with:
npm ERR! npm bugs zeromq
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls zeromq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11862-
12896-1hksja0.rlxwvfs9k9\npm-debug.log
npm ERR! code 1
I'd appreciate any kind of help!
Similarly #1298 had some discussion around this.
@crstnbr Would you be able to test whether the installation of Hydrogen works with Atom v1.27.2?
If the installation of Hydrogen works with Atom v1.27.2, this would support my guess in this comment that the issue is triggered when building zeromq for electron v2 (Atom v1.28 and above use electron v2).
I'm on a plane to Chicago right now but will try to test it with 1.27 later
today.
That's what I get with Atom v1.27:
C:\Users\carsten\Desktop
$ atom --version
Atom : 1.27.2
Electron: 1.7.15
Chrome : 58.0.3029.110
Node : 7.9.0
C:\Users\carsten\Desktop
$ apm --version
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.27.2
python 2.7.13
git 2.11.0.windows.2
visual studio 2015
C:\Users\carsten\Desktop
$ apm install hydrogen
Installing hydrogen to C:\Users\carsten\.atom\packages failed
> [email protected] install C:\Users\carsten\AppData\Local\Temp\apm-install
-dir-11865-7184-4tauu2.5nx62sm7vi\node_modules\Hydrogen\node_modules\ca
nvas
> node-gyp rebuild
C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11865-7184-4tauu2.5
nx62sm7vi\node_modules\Hydrogen\node_modules\canvas>if not defined npm_
config_node_gyp (node "C:\Users\carsten\AppData\Local\atom\app-1.27.2\r
esources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\
node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\carsten\AppDa
ta\Local\atom\app-1.27.2\resources\app\apm\bin\\..\node_modules\node-gy
p\bin\node-gyp.js" rebuild )
> [email protected] install C:\Users\carsten\AppData\Local\Temp\apm-install-
dir-11865-7184-4tauu2.5nx62sm7vi\node_modules\Hydrogen\node_modules\zer
omq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && no
de-gyp rebuild)
The system cannot find the path specified.
Downloading libzmq for Windows
Download finished
C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11865-7184-4tauu2.5
nx62sm7vi\node_modules\Hydrogen\node_modules\zeromq>if not defined npm_
config_node_gyp (node "C:\Users\carsten\AppData\Local\atom\app-1.27.2\r
esources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\
node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\carsten\AppDa
ta\Local\atom\app-1.27.2\resources\app\apm\bin\\..\node_modules\node-gy
p\bin\node-gyp.js" rebuild )
C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11865-7184-4tauu2.5
nx62sm7vi
`-- (empty)
The system cannot find the path specified.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in
binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\carsten\AppData\L
ocal\atom\app-1.27.2\resources\app\apm\node_modules\node-gyp\lib\config
ure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\carsten\\AppData\\Local\\atom\\app-1.27.2\
\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\carsten\\AppData\\Loca
l\\atom\\app-1.27.2\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\
node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11865-
7184-4tauu2.5nx62sm7vi\node_modules\Hydrogen\node_modules\canvas
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
The system cannot find the path specified.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in
binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\carsten\AppData\L
ocal\atom\app-1.27.2\resources\app\apm\node_modules\node-gyp\lib\config
ure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\carsten\\AppData\\Local\\atom\\app-1.27.2\
\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\carsten\\AppData\\Loca
l\\atom\\app-1.27.2\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\
node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11865-
7184-4tauu2.5nx62sm7vi\node_modules\Hydrogen\node_modules\zeromq
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\carst
en\AppData\Local\Temp\apm-install-dir-11865-7184-4tauu2.5nx62sm7vi\pack
age.json'
npm WARN [email protected] requires a peer of react@^0.14.0 || ^1
5.0.0 but none was installed.
npm WARN [email protected] requires a peer of commonmark@
^0.27.0 || ^0.26.0 || ^0.24.0 but none was installed.
npm WARN apm-install-dir-11865-7184-4tauu2.5nx62sm7vi No description
npm WARN apm-install-dir-11865-7184-4tauu2.5nx62sm7vi No repository fie
ld.
npm WARN apm-install-dir-11865-7184-4tauu2.5nx62sm7vi No README data
npm WARN apm-install-dir-11865-7184-4tauu2.5nx62sm7vi No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_mod
ules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install:
`node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\\Users\\carsten\\AppData\\Local\\atom\\app-1.27.2\\re
sources\\app\\apm\\bin\\node.exe" "C:\\Users\\carsten\\AppData\\Local\\
atom\\app-1.27.2\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.
js" "--globalconfig" "C:\\Users\\carsten\\.atom\\.apm\\.apmrc" "--userc
onfig" "C:\\Users\\carsten\\.atom\\.apmrc" "install" "C:\\Users\\carste
n\\AppData\\Local\\Temp\\d-11865-7184-etlbwo.k89xcac3di\\package.tgz" "
--runtime=electron" "--target=1.7.15" "--arch=x64" "--global-style" "--
msvs_version=2015"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node scripts/prebuild-install.js || (no
de scripts/preinstall.js && node-gyp rebuild)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node scripts/prebui
ld-install.js || (node scripts/preinstall.js && node-gyp rebuild)'.
npm ERR! Make sure you have the latest version of node.js and npm insta
lled.
npm ERR! If you do, this is most likely a problem with the zeromq packa
ge,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/prebuild-install.js || (node scripts/preinsta
ll.js && node-gyp rebuild)
npm ERR! You can get information on how to open an issue for this proje
ct with:
npm ERR! npm bugs zeromq
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls zeromq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\carsten\AppData\Local\Temp\apm-install-dir-11865-
7184-4tauu2.5nx62sm7vi\npm-debug.log
npm ERR! code 1
Have experienced the same, thanks for rep么rting the issue
@crstnbr Thank you for testing this.
I can't do it this week, but I'll try to reproduce the issue in windows machine next week (please, ping me back again, if you don't hear from me).
The first lead I'd follow is to locate what's printing the error message The system cannot find the path specified..
Updating with Atom 1.28.1 has the same issue:
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.28.1
python 2.7.13
git 2.16.2.windows.1
visual studio 2015
The error still persists
Installing hydrogen to C:\Users\USERNNAME\.atom\packages failed
> [email protected] install C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r\node_modules\Hydrogen\node_modules\canvas
> node-gyp rebuild
C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r\node_modules\Hydrogen\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Users\USERNNAME\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\USERNNAME\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
> [email protected] install C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r\node_modules\Hydrogen\node_modules\zeromq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)
The system cannot find the path specified.
Downloading libzmq for Windows
Download finished
C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r\node_modules\Hydrogen\node_modules\zeromq>if not defined npm_config_node_gyp (node "C:\Users\USERNNAME\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\USERNNAME\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r
`-- (empty)
The system cannot find the path specified.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\USERNNAME\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Users\\USERNNAME\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\USERNNAME\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r\node_modules\Hydrogen\node_modules\canvas
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
The system cannot find the path specified.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\USERNNAME\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Users\\USERNNAME\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\USERNNAME\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r\node_modules\Hydrogen\node_modules\zeromq
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r\package.json'
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0 but none was installed.
npm WARN [email protected] requires a peer of commonmark@^0.27.0 || ^0.26.0 || ^0.24.0 but none was installed.
npm WARN apm-install-dir-118611-15728-bobvct.fegs2u766r No description
npm WARN apm-install-dir-118611-15728-bobvct.fegs2u766r No repository field.
npm WARN apm-install-dir-118611-15728-bobvct.fegs2u766r No README data
npm WARN apm-install-dir-118611-15728-bobvct.fegs2u766r No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Users\\USERNNAME\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\USERNNAME\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\USERNNAME\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\USERNNAME\\.atom\\.apmrc" "install" "C:\\Users\\USERSHORT~1\\AppData\\Local\\Temp\\d-118611-15728-gw1fpd.tpi1pxpqfr\\package.tgz" "--runtime=electron" "--target=2.0.4" "--arch=x64" "--global-style" "--msvs_version=2015"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] 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 [email protected] install script 'node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the zeromq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs zeromq
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls zeromq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\USERSHORT~1\AppData\Local\Temp\apm-install-dir-118611-15728-bobvct.fegs2u766r\npm-debug.log
npm ERR! code 1
I've installed Atom 1.28.1 x64 and Hydrogen 2.5.1 in a Windows 10 machine without errors. I've also uninstalled and installed Hydrogren without errors.
This suggests there is an issue with your Atom installation.
Not the same error, but this user reported that deleting the .apm folder and reinstalling Hydrogen fixed their issue.
To clarify I have this issue with multiple PC's, although their setup is almost identical. I also had installed node a similar time. I went fully nuclear.
Removing Everything
c:\Users\USERNAME\.atomc:\Users\USERNAME\AppData\Local\atomc:\Users\USERNAME\AppData\Roaming\atomAttempting to reinstall hydrogen and atom:
HTTP_PROXY and HTTPS_PROXY variables. Failed with Python 3 error messageapm config set python /path/to/python2. Attempt 2
.apmrcSee the error message again below. This doesn't seem to be a corrupt ATOM issue.
Installing hydrogen to C:\Users\212333077\.atom\packages failed
> [email protected] install C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr\node_modules\Hydrogen\node_modules\canvas
> node-gyp rebuild
C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr\node_modules\Hydrogen\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Users\212333077\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\212333077\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
> [email protected] install C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr\node_modules\Hydrogen\node_modules\zeromq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)
The system cannot find the path specified.
Downloading libzmq for Windows
Download finished
C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr\node_modules\Hydrogen\node_modules\zeromq>if not defined npm_config_node_gyp (node "C:\Users\212333077\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\212333077\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr
`-- (empty)
The system cannot find the path specified.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\212333077\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Users\\212333077\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\212333077\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr\node_modules\Hydrogen\node_modules\canvas
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
The system cannot find the path specified.
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\212333077\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Users\\212333077\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\212333077\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr\node_modules\Hydrogen\node_modules\zeromq
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr\package.json'
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0 but none was installed.
npm WARN [email protected] requires a peer of commonmark@^0.27.0 || ^0.26.0 || ^0.24.0 but none was installed.
npm WARN apm-install-dir-118611-6988-190hmgf.qg8eb138fr No description
npm WARN apm-install-dir-118611-6988-190hmgf.qg8eb138fr No repository field.
npm WARN apm-install-dir-118611-6988-190hmgf.qg8eb138fr No README data
npm WARN apm-install-dir-118611-6988-190hmgf.qg8eb138fr No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Users\\212333077\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\212333077\\AppData\\Local\\atom\\app-1.28.1\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\212333077\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\212333077\\.atom\\.apmrc" "install" "C:\\Users\\212333~1\\AppData\\Local\\Temp\\d-118611-6988-1dxb3e.powz6c4n29\\package.tgz" "--runtime=electron" "--target=2.0.4" "--arch=x64" "--global-style" "--msvs_version=2015"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] 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 [email protected] install script 'node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the zeromq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs zeromq
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls zeromq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\212333~1\AppData\Local\Temp\apm-install-dir-118611-6988-190hmgf.qg8eb138fr\npm-debug.log
npm ERR! code 1
@eskemojoe007 Than you for the thorough tests.
Some results from checking the installation on my Windows machine:
The system cannot find the path specified comes from node scripts/prebuild-install.js.Some leads to follow after a google search for The system cannot find the path specified:
@n-riesco Looked into some of that...couldn't find any actionable things to do, this is now out of my league. I guess I have to switch editors, as I need hydrogen on the daily.
@eskemojoe007 I understand. I'm sorry I couldn't be of more help.
@eskemojoe007 Just to be clear, did you rule out the possibility of the issue being caused by the user name?
Shouldn't be a username as my windows usernames on both machines are either a single name like "billy" or a numeric string like "123456". It worked up until the recent updates to 1.28 when Hydrogen needed to be rebuilt.
@eskemojoe007 I've noticed another unusual thing in the log messages above. They report that node v6.9.5 is being used, whereas my installation of Atom 1.28.1 in Windows 10, the dev console (shift-ctrl-i) shows process.versions.node is 8.9.3.
@n-riesco - my apm --version yeilds:
C:\Users\212333077>apm --version
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.28.1
python 2.7.13
git 2.16.2.windows.1
visual studio 2015
Hmmm...I nuked my atom and everything, but it looks like the new 1.28 should have Node 8.9:
This also upgrades Atom鈥檚 Node.js from 7.9.0 to 8.9.3
I'll try nuking again.
When looking in the console, I too get 8.9.3, but with a different APM Version. See https://github.com/atom/apm/issues/328.
@n-riesco can you look at your successful machine's path? and put that here (obviously removing any non-atom related paths.)
@eskemojoe007 This is what I get on cmd.exe:
C:\Users\user>echo %PATH%
C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Docker;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\nodejs\;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Users\user\AppData\Roaming\npm;E:\instantclient_12_2;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;
Hmmm...its interesting to me that you don't have C:\Users\user\AppData\Local\atom\bin...how do you access apm from the command line? I've been adding that the last couple of nuke and installs.
Mine looks like this:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath
C:\Apps\product\11.2.0\client_1\bin
C:\ProgramData\Oracle\Java\javapath
C:\Program Files (x86)\Windows Resource Kits\Tools\
C:\Sybase\DataAccess\OLEDB\dll
C:\Sybase\DataAccess\ODBC\dll
C:\Sybase\OCS-12_5\lib3p
C:\Sybase\ADO.NET\dll
C:\Sybase\OLEDB
C:\Sybase\ODBC
C:\Sybase\OCS-12_5\dll
C:\Sybase\OCS-12_5\bin
C:\Apps\cygwin\bin
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Apps\Tcl\bin
C:\Apps\perl\bin
C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\
C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\
C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\
C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\
C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\
C:\Program Files\Cloud Foundry
C:\Program Files\Git\cmd
C:\Users\user\AppData\Local\Programs\Python\Launcher\
C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts\
C:\Users\user\AppData\Local\Programs\Python\Python36\
C:\Users\user\AppData\Local\Microsoft\WindowsApps
C:\Users\user\AppData\Local\GitHubDesktop\bin
C:\Users\user\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\
C:\Python27\
C:\Users\user\AppData\Local\atom\bin
I haven't run apm on that machine. I'll add it to PATH and see what happens.
@eskemojoe007 what about node? isn't node in your PATH?
I have both node an atom\bin in my path. Removing atom\bin doesn't help (same issue).
I've never had it in the path before, since Atom ships with its own node implementation of node. I've never had to install my own node in the past.
Just tried running on older versions (which used to work) with the same error message.
C:\Users\user>apm --version
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.27.2
python 2.7.13
git 2.16.2.windows.1
visual studio 2015
C:\Users\user>atom --version
Atom : 1.27.2
Electron: 1.7.15
Chrome : 58.0.3029.110
Node : 7.9.0
C:\Users\user>apm install [email protected]
Installing [email protected] to C:\Users\user\.atom\packages failed
C:\Users\user>apm install [email protected]
Installing [email protected] to C:\Users\user\.atom\packages failed
How intriguing! I didn't update PATH. I just opened cmd.exe, went to cd %LOCALAPPDATA\atom\bin and this is what I get (apm and atom report different versions of node):
C:\Users\user\AppData\Local\atom\bin>apm --version
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.28.1
python 2.7.15
git
visual studio 2015
C:\Users\user\AppData\Local\atom\bin>node --version
v8.11.2
C:\Users\user\AppData\Local\atom\bin>atom --version
Atom : 1.28.1
Electron: 2.0.4
Chrome : 61.0.3163.100
Node : 8.9.3
@eskemojoe007 Have you tried to uninstall and install Hydrogen using atom instead of apm?
The mismatched version between atom and apm is a red herring. I can install Hydrogen using apm in my machine:
C:\Users\user\AppData\Local\atom\bin>apm install Hydrogen
Installing Hydrogen to C:\Users\user\.atom\packages done
C:\Users\user\AppData\Local\atom\bin>
SOLVED
Had nothing to do with path, nothing to do with python 3 vs 2 (although I think python 2 is still required), nothing to do with version, or with apm vs installing in atom (which I did check).
I had previously installed some alias commands for windows by setting my registry HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun to point at an alias file. I had completely forgotten about doing this however. Removing this key solved everything. I found this solution at a couple of places:
So @crstnbr if you are still having problems...check that registry key.
I succeed with older and newer versions of atom and hydrogen.
C:\Users\user>apm --version
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.28.2
python 2.7.13
git 2.16.2.windows.1
visual studio 2015
C:\Users\user>atom --version
Atom : 1.28.2
Electron: 2.0.5
Chrome : 61.0.3163.100
Node : 8.9.3
C:\Users\user>apm install hydrogen
Installing hydrogen to C:\Users\user\.atom\packages done
@eskemojoe007 That was indeed the problem! Thanks so much everyone!
I'm closing this.
Won't let me change the title, but I think we should change it to something like "Installation on windows with node-gyp error" or something similar. Thanks team.
Most helpful comment
SOLVED
Had nothing to do with path, nothing to do with python 3 vs 2 (although I think python 2 is still required), nothing to do with version, or with apm vs installing in atom (which I did check).
I had previously installed some alias commands for windows by setting my registry
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRunto point at an alias file. I had completely forgotten about doing this however. Removing this key solved everything. I found this solution at a couple of places:So @crstnbr if you are still having problems...check that registry key.
I succeed with older and newer versions of atom and hydrogen.