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

Installation failure on Windows: node-gyp error The system cannot find the path specified. #1352

Closed
carstenbauer opened this issue Jul 3, 2018 · 30 comments

Comments

@carstenbauer
Copy link

carstenbauer commented Jul 3, 2018

Description:

Can't install hydrogen package. Neither per GUI nor per console apm install hydrogen. Might be closely related to #1308 and maybe to the Windows 10 April update.

Steps to Reproduce:

For me it's the following:

  1. Install Atom on Windows 10 (version details see below)
  2. Try to install Hydrogen

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

> canvas@1.6.11 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 )

> zeromq@4.6.0 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 react-rangeslider@2.2.0 requires a peer of react@^0.14.0 || ^1
5.0.0 but none was installed.
npm WARN commonmark-react-renderer@4.3.4 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: canvas@1.6.11 (node_mod
ules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.11 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! zeromq@4.6.0 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 zeromq@4.6.0 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!

@eskemojoe007
Copy link

Similarly #1298 had some discussion around this.

@n-riesco
Copy link
Collaborator

n-riesco commented Jul 3, 2018

@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).

@carstenbauer
Copy link
Author

carstenbauer commented Jul 3, 2018 via email

@carstenbauer
Copy link
Author

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

> canvas@1.6.11 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 )

> zeromq@4.6.0 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 react-rangeslider@2.2.0 requires a peer of react@^0.14.0 || ^1
5.0.0 but none was installed.
npm WARN commonmark-react-renderer@4.3.4 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: canvas@1.6.11 (node_mod
ules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.11 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! zeromq@4.6.0 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 zeromq@4.6.0 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

@JeanClaudeR
Copy link

Have experienced the same, thanks for repôrting the issue

@n-riesco
Copy link
Collaborator

n-riesco commented Jul 6, 2018

@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..

@eskemojoe007
Copy link

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

> canvas@1.6.11 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 )

> zeromq@4.6.0 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 react-rangeslider@2.2.0 requires a peer of react@^0.14.0 || ^15.0.0 but none was installed.
npm WARN commonmark-react-renderer@4.3.4 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: canvas@1.6.11 (node_modules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.11 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! 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 '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

@n-riesco
Copy link
Collaborator

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.

@eskemojoe007
Copy link

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

  • Uninstall Atom using windows uninstaller
  • Delete c:\Users\USERNAME\.atom
  • Delete c:\Users\USERNAME\AppData\Local\atom
  • Delete c:\Users\USERNAME\AppData\Roaming\atom
  • Remove any trace of node similarly (though probably not necessary)

Attempting to reinstall hydrogen and atom:

  • Reinstalled Atom
  • Attempted to install hydrogen behind proxy with global HTTP_PROXY and HTTPS_PROXY variables. Failed with Python 3 error message
  • ran into the typical python 3 issue where I had to enter apm config set python /path/to/python2.
  • Installed again, failed due to known proxy issues with hydrogen
  • I disconnected to a proxy-free network, removed my proxy settings, and tried again with the same error message.

Attempt 2

  • Follow all the steps in "Remove Everything"
  • Reinstalled Atom
  • Set Python to python 2 first
  • No proxy, connected to open network, proxy settings disabled and not in .apmrc
  • Still failed with the same error message

See the error message again below. This doesn't seem to be a corrupt ATOM issue.

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

> canvas@1.6.11 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 )

> zeromq@4.6.0 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 react-rangeslider@2.2.0 requires a peer of react@^0.14.0 || ^15.0.0 but none was installed.
npm WARN commonmark-react-renderer@4.3.4 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: canvas@1.6.11 (node_modules\Hydrogen\node_modules\canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas@1.6.11 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! 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 '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

@n-riesco
Copy link
Collaborator

@eskemojoe007 Than you for the thorough tests.


Some results from checking the installation on my Windows machine:

Some leads to follow after a google search for The system cannot find the path specified:

@eskemojoe007
Copy link

@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.

@n-riesco
Copy link
Collaborator

@eskemojoe007 I understand. I'm sorry I couldn't be of more help.

@n-riesco
Copy link
Collaborator

@eskemojoe007 Just to be clear, did you rule out the possibility of the issue being caused by the user name?

@eskemojoe007
Copy link

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.

@n-riesco
Copy link
Collaborator

@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.

@eskemojoe007
Copy link

@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’s Node.js from 7.9.0 to 8.9.3

I'll try nuking again.

@eskemojoe007
Copy link

When looking in the console, I too get 8.9.3, but with a different APM Version. See atom/apm#328.

@eskemojoe007
Copy link

@n-riesco can you look at your successful machine's path? and put that here (obviously removing any non-atom related paths.)

@n-riesco
Copy link
Collaborator

n-riesco commented Jul 17, 2018

@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;

@eskemojoe007
Copy link

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

@n-riesco
Copy link
Collaborator

I haven't run apm on that machine. I'll add it to PATH and see what happens.

@n-riesco
Copy link
Collaborator

@eskemojoe007 what about node? isn't node in your PATH?

@carstenbauer
Copy link
Author

I have both node an atom\bin in my path. Removing atom\bin doesn't help (same issue).

@eskemojoe007
Copy link

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 hydrogen@2.2.3
Installing hydrogen@2.2.3 to C:\Users\user\.atom\packages failed

C:\Users\user>apm install hydrogen@2.1.1
Installing hydrogen@2.1.1 to C:\Users\user\.atom\packages failed

@n-riesco
Copy link
Collaborator

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?

@n-riesco
Copy link
Collaborator

Re/ atom/apm#328

@n-riesco
Copy link
Collaborator

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>

@eskemojoe007
Copy link

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

@carstenbauer
Copy link
Author

@eskemojoe007 That was indeed the problem! Thanks so much everyone!
I'm closing this.

@eskemojoe007
Copy link

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.

@n-riesco n-riesco changed the title Can't install hydrogen on Windows 10 Installation failure on Windows: The system cannot find the path specified. Jul 23, 2018
@n-riesco n-riesco changed the title Installation failure on Windows: The system cannot find the path specified. Installation failure on Windows: node-gyp error The system cannot find the path specified. Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants