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

can't install node ? #1590

Closed
yyjguo opened this issue Aug 14, 2017 · 13 comments
Closed

can't install node ? #1590

yyjguo opened this issue Aug 14, 2017 · 13 comments
Labels
installing node Issues with installing node/io.js versions. needs followup We need some info or action from whoever filed this issue/PR. OS: windows shell: bash/sh

Comments

@yyjguo
Copy link

yyjguo commented Aug 14, 2017

Computing checksum with sha256sum
Checksums matched!
$>./configure --prefix=/c/Users/Administrator/.nvm/versions/node/v4.8.4 <
/usr/bin/env: ‘python’: No such file or directory
nvm: install v4.8.4 failed!

@ljharb
Copy link
Member

ljharb commented Aug 14, 2017

Do you have python installed? You can't compile node without it.

@ljharb ljharb added installing node Issues with installing node/io.js versions. needs followup We need some info or action from whoever filed this issue/PR. labels Aug 14, 2017
@ljharb
Copy link
Member

ljharb commented Aug 14, 2017

What does nvm debug say? It would really help if you filled out the issue template; that's why it's there.

@yyjguo
Copy link
Author

yyjguo commented Aug 14, 2017

thanks, maybe i should install python firstly @ljharb

@yyjguo
Copy link
Author

yyjguo commented Aug 14, 2017

i have installed python2.7.13, then executed nvm install 5.10.0 .

tips:

bash: make: command not found
nvm: install v5.10.0 failed!

nvm debug
nvm --version: v0.33.2
$SHELL: /usr/bin/bash
$HOME: /c/Users/Administrator
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 4.3.42(5)-release (i686-pc-msys)'
uname -a: 'MINGW32_NT-6.1 2.5.0(0.295/5/3) 2016-03-31 18:26 i686 Msys'
curl: /mingw32/bin/curl, curl 7.47.1 (i686-w64-mingw32) libcurl/7.47.1 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 libssh2/1.7.0 librtmp/2.3
wget: not found
git: /mingw32/bin/git, git version 2.8.1.windows.1
nvm current: none
which node: which: no node in ($HOME/bin:/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/mingw32/bin:/usr/bin:$HOME/bin:/c/Python27:/c/Python27/Scripts:/c/sybase/RPL-12_5/bin:/c/sybase/Shared/Sybase Central 4.3:/c/sybase/OCS-12_5/lib3p:/c/sybase/OCS-12_5/dll:/c/sybase/OCS-12_5/bin:/c/sybase/ASE-12_5/dll:/c/sybase/ASE-12_5/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/usr/bin/vendor_perl:/usr/bin/core_perl)
which iojs: which: no iojs in ($HOME/bin:/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/mingw32/bin:/usr/bin:$HOME/bin:/c/Python27:/c/Python27/Scripts:/c/sybase/RPL-12_5/bin:/c/sybase/Shared/Sybase Central 4.3:/c/sybase/OCS-12_5/lib3p:/c/sybase/OCS-12_5/dll:/c/sybase/OCS-12_5/bin:/c/sybase/ASE-12_5/dll:/c/sybase/ASE-12_5/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/usr/bin/vendor_perl:/usr/bin/core_perl)
which npm: which: no npm in ($HOME/bin:/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/mingw32/bin:/usr/bin:$HOME/bin:/c/Python27:/c/Python27/Scripts:/c/sybase/RPL-12_5/bin:/c/sybase/Shared/Sybase Central 4.3:/c/sybase/OCS-12_5/lib3p:/c/sybase/OCS-12_5/dll:/c/sybase/OCS-12_5/bin:/c/sybase/ASE-12_5/dll:/c/sybase/ASE-12_5/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/usr/bin/vendor_perl:/usr/bin/core_perl)
npm config get prefix: bash: npm: command not found
npm root -g: bash: npm: command not found

@ljharb
Copy link
Member

ljharb commented Aug 14, 2017

If make can't be found, it seems like you might be missing a lot of things.

It seems like you might be in BashOnWindows on Windows 10 - if nvm isn't working for you out of the box, you'll need to file an issue with Microsoft.

Have you tried installing node 8? node 5 and 7 are both EOL; so I'd only expect 4, 6, and 8 to work on WSL.

@mjvid
Copy link

mjvid commented Aug 25, 2017

@zhengjingfa I'm facing the same issue. May i know if you found a fix for this ?

@yyjguo
Copy link
Author

yyjguo commented Aug 28, 2017

@mjvid i just install node.exe for win

@ljharb
Copy link
Member

ljharb commented Aug 28, 2017

That just means you're not using nvm at all, which isn't a solution :-/

@yyjguo
Copy link
Author

yyjguo commented Aug 31, 2017

i install nvm-windows, it can work. @mjvid

@ljharb
Copy link
Member

ljharb commented Aug 31, 2017

On Windows, nvm requires BashOnWindows; nvm-windows works in normal Windows.

I'm going to close this, but I'm happy to keep working through it to get nvm working.

@ljharb ljharb closed this as completed Aug 31, 2017
@chenyangguang
Copy link

@ljharb , so which version of python needs to install on windows?

@ljharb
Copy link
Member

ljharb commented Dec 27, 2017

@chenyangguang node's own install script governs that; i think python 2.7. If you've run into trouble, would you mind filing a new issue?

@chenyangguang
Copy link

@ljharb , i had installed the node5.8 to fix my version of node.js problem .(through i have install node8.9.3 and npm 5.5, the nvm can't not install node.5.8 ). Anyway it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installing node Issues with installing node/io.js versions. needs followup We need some info or action from whoever filed this issue/PR. OS: windows shell: bash/sh
Projects
None yet
Development

No branches or pull requests

4 participants