-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
the Environment variables Issues with node & npm #177
Comments
+1 |
Just saw this... did it work after restarting the terminal? |
I've just released a new version (1.1.1). Can you let me know if this is fixed for you? |
I was using (1.1.1) and used the installer and the same problem arised on windows 10. Deleting c:/program files/nodejs as @kissshot suggested then opening a new terminal and doing |
Got same issue here.. When i type: nvm use [arch] I get user control window poping up twice asking if i want to run node and it fails when i try it in the command line C:\Users\Hadi>nvm install 4 64
4.0.0
Downloading node.js version 4.0.0 (64-bit)... Complete
Creating C:\Users\Hadi\AppData\Roaming\nvm\temp
Downloading npm version 2.14.2... Complete
Installing npm v2.14.2...
Installation complete. If you want to use this version, type
nvm use 4.0.0
C:\Users\Hadi>nvm list
4.0.0
C:\Users\Hadi>nvm use 4 64
4.0.0
Now using node v4.0.0 (64-bit)
C:\Users\Hadi>node -v
'node' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Hadi>npm -v
'npm' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Hadi>nvm use 4 64
4.0.0
Now using node v4.0.0 (64-bit)
C:\Users\Hadi>npm -v
'npm' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Hadi>nvm on
nvm enabled
Now using node v4.0.0 (64-bit)
C:\Users\Hadi>node -v
'node' is not recognized as an internal or external command,
operable program or batch file.
|
@Almusamim - if you're getting the double prompt, it means you're running with an account that does not have administrative and elevated permissions. |
I seem to be having a similar issue... I've installed NVM 1.1.1 on Win7 Pro from the GIT 2.9.2 bash shell using "Run as administrator" and then installed the 64-bit versions of node 4.4.7 and latest (6.3.1). I then closed that bash shell, opened another one using "Run as administrator" and attempted to use 4.4.7:
Any ideas what I'm doing wrong? |
I've resolved this issue but am not certain which step is responsible for my newly found success. 😜 My initial attempt above involved uninstalling node before installing nvm, however I didn't also delete "C:\Users\ <username> \AppData\Roaming\npm". I'm guessing that might be the culprit. I was able to use robocopy to delete that |
Win7 isn't officially supported (read why here), nor is the git bash prompt. Cygwin and anything based off it or it's underlying technologies, or other shell interpretors, typically replace the symlink functionality of the native OS. Another user mentioned success with the latest git bash prompt... I suspect the new version has support for |
Just a note in case others had my issue or it helps devs troubleshoot. When I ran a command prompt by right-clicking on a folder and choosing "Open Command Prompt", Node and NPM were unavailable and could not be located by using the "where" command. |
Using version 1.1.6, I had the same issue after running the command "nvm install 7.4.0 64". |
Resolved in v1.1.7. |
My Environment
C:\Users\kissshot>nvm use 4.4.5
Now using node v4.4.5 (64-bit)
nvm is run
then
C:\Users\kissshot>npm -v
'npm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\kissshot>node -v
'node' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
this mean not found node & npm
my English is not good, hope you can understand
i fixed this , delete c:/program files/nodejs
The text was updated successfully, but these errors were encountered: