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

nvm install - errors #334

Closed
1 of 2 tasks
jorjik opened this issue Feb 6, 2018 · 34 comments
Closed
1 of 2 tasks

nvm install - errors #334

jorjik opened this issue Feb 6, 2018 · 34 comments

Comments

@jorjik
Copy link

jorjik commented Feb 6, 2018

My Environment

  • [+] Windows 7 or below (not truly supported due to EOL - see wiki for details)
  • [+] My Windows installation is non-English.

I'm using NVM4W version:

  • 1.1.6

I have already...

  • [+] read the README to be aware of npm gotchas & antivirus issues.
  • [+] reviewed the wiki to make sure my issue hasn't already been resolved.
  • [+] verified I'm using an account with administrative privileges.
  • made sure this isn't a question about how to use NVM for Windows, since gitter is used for questions and comments.
  • searched the issues (open and closed) to make sure this isn't a duplicate.

My issue is related to (check only those which apply):

  • A standard shell environment (terminal/powershell)

Expected Behavior

Actual Behavior

nvm install 7.10.1
C:\Users\������\AppData\Roaming\nvm could not be found or does not exist. Exiting.
Downloading node.js version 7.10.1 (64-bit)...
Error while creating C:\Users\������\AppData\Roaming\nvm\v7.10.1\node64.exe - open C:\Users\������\AppData\Roaming\nvm\v7.10.1\node64.exe: The system cannot find the path specified.
Error while downloading https://nodejs.org/dist/v7.10.1/win-x64//node.exe - invalid argument
Complete
Creating C:\Users\������\AppData\Roaming\nvm\temp

mkdir C:\Users\������\AppData\Roaming\nvm\temp: The system cannot find the path specified.

Steps to reproduce the problem:

install
reboot

@b-dur
Copy link

b-dur commented Apr 17, 2018

Does your user name have spaces in it? Example C:\Users\john doe\AppData\Roaming\nvm

@jorjik
Copy link
Author

jorjik commented Apr 17, 2018

no (i have russian_lang)

@b-dur
Copy link

b-dur commented Apr 17, 2018

If you open this path C:\Users\������\AppData\Roaming\ in your File Explorer, do you see the nvm folder?

@jorjik
Copy link
Author

jorjik commented Apr 17, 2018

yes

@shaojie-li
Copy link

I have the same problem.How to resovel it?

@JJnne
Copy link

JJnne commented Jul 27, 2018

Hi guys!

I had same issue. For me cause of the problem was special characters in my windows username. I was able to fix this problem by re-setting Nvm root: nvm root C:\Users\username\AppData\Roaming\nvm

@Raerten
Copy link

Raerten commented Jul 27, 2018

I guess that ������ in C:\Users\������\AppData\Roaming\ it is ASCII representation of UTF (multibyte) characters.
may be nvm internally doesn't use multibyte string and pass to Win API wrong chars for path?

@parmentf
Copy link

Same problem, my username is François, and Windows does not seem to recognize the ç correctly, maybe somewhere in the program, it is needed to wrap the path within quotes?

In PowerShell (with admin rights):

C:\Users\Fran�ois\AppData\Roaming\nvm could not be found or does not exist. Exiting.
Downloading node.js version 10.11.0 (64-bit)...
Error while creating C:\Users\Fran�ois\AppData\Roaming\nvm\v10.11.0\node64.exe - open C:\Users\Fran�ois\AppData\Roaming\nvm\v10.11.0\node64.exe: Le chemin d’accès spécifié est introuvable.
Error while downloading https://nodejs.org/dist/v10.11.0/win-x64//node.exe - invalid argument
Complete
Creating C:\Users\Fran�ois\AppData\Roaming\nvm\temp

mkdir C:\Users\Fran�ois\AppData\Roaming\nvm\temp: Le chemin d’accès spécifié est introuvable.

In Git Bash:

François@FRANÇOIS-PCTOUR ~
$ nvm install latest
C:\Users\Fran�ois\AppData\Roaming\nvm could not be found or does not exist. Exiting.
Downloading node.js version 10.11.0 (64-bit)...
Error while creating C:\Users\Fran�ois\AppData\Roaming\nvm\v10.11.0\node64.exe - open C:\Users\Fran�ois\AppData\Roaming\nvm\v10.11.0\node64.exe: Le chemin d’accès spécifié est intr
ouvable.
Error while downloading https://nodejs.org/dist/v10.11.0/win-x64//node.exe - invalid argument
Complete
Creating C:\Users\Fran�ois\AppData\Roaming\nvm\temp

mkdir C:\Users\Fran�ois\AppData\Roaming\nvm\temp: Le chemin d’accès spécifié est introuvable.

the nvm directory exists, it just can't find it:

François@FRANÇOIS-PCTOUR ~
$ ls AppData/Roaming/nvm/
elevate.cmd  elevate.vbs  install.cmd  nodejs.ico  nvm.exe  settings.txt  unins000.dat  unins000.exe  unins000.msg

@parmentf
Copy link

parmentf commented Sep 28, 2018

After reading @JJnne's comment, I tried this:

PS C:\WINDOWS\system32> nvm root "C:\Users\François\AppData\Roaming\nvm"

Root has been set to C:\Users\François\AppData\Roaming\nvm
PS C:\WINDOWS\system32> nvm install latest
Downloading node.js version 10.11.0 (64-bit)...
Complete
Creating C:\Users\François\AppData\Roaming\nvm\temp

Downloading npm version 6.4.1... Complete
Installing npm v6.4.1...

Installation complete. If you want to use this version, type

nvm use 10.11.0

and it worked! Thanks.
But only enclosing the path in quotes!

@coreybutler
Copy link
Owner

This should be resolved in the master branch and is slated for release in 1.1.8, which I simply haven't had time to get to yet. Probably 2-3 weeks before I'll be able to cut another release.

@LorenaGitHub
Copy link

image
It gives me error and it does not let me install it

@rw251
Copy link

rw251 commented Mar 27, 2019

This also happens if you don't have the necessary permissions to the AppData directory. My work laptop has a weird setup where although my account appears to have admin access on AppData I can't actually copy *.exe files into it - so I get the exact error as appears in the above screenshot. It works fine if I pick a different directory when installing.

@sansa91
Copy link

sansa91 commented Feb 26, 2021

Hi guys!

I had same issue. For me cause of the problem was special characters in my windows username. I was able to fix this problem by re-setting Nvm root: nvm root C:\Users\username\AppData\Roaming\nvm

<3

@yuanzhenzhen0816
Copy link

如果您C:\Users\������\AppData\Roaming\在文件资源管理器中打开此路径,您是否看到nvm文件夹?

没有,怎么办,自己新建新建一个吗

@coreybutler
Copy link
Owner

spaces and special characters are now supported in https://github.com/coreybutler/nvm-windows/releases/tag/1.1.8

@infisamk
Copy link

infisamk commented Sep 22, 2021

Problem was not solved.

PS C:\WINDOWS\system32> nvm version
1.1.8
PS C:\WINDOWS\system32> nvm install lts
C:\Users\�������\AppData\Roaming\nvm could not be found or does not exist. Exiting.
Downloading node.js version 14.17.6 (64-bit)...
Error while creating C:\Users\�������\AppData\Roaming\nvm\v14.17.6\node64.exe - open C:\Users\�������\AppData\Roaming\nvm\v14.17.6\node64.exe: The system cannot find the path specified.
Could not download node.js v14.17.6 64-bit executable.

I use cyrillic chars for username.

@yoni333
Copy link

yoni333 commented Oct 7, 2021

nvm version 1.1.8 -> problem not solved . i have hebrew username
nvm install 8.17.0 C:\Users\����\AppData\Roaming\nvm could not be found or does not exist. Exiting. Downloading node.js version 8.17.0 (64-bit)... Error while creating C:\Users\����\AppData\Roaming\nvm\v8.17.0\node64.exe - open C:\Users\����\AppData\Roaming\nvm\v8.17.0\node64.exe: The system cannot find the path specified. Could not download node.js v8.17.0 64-bit executable.

@maxdenaro
Copy link

Hi! I had the same problem.

I tried git bash and that`s solved problem. Do not use cmd, powershell and smth like that :)

@yoni333
Copy link

yoni333 commented Oct 31, 2021

I tried git bash and that`s solved problem. Do not use cmd, powershell and smth like that :)
@jorjik - mube you will ad this to the documantion ?

@DenisLopatin
Copy link

It's just awful. No matter what I do, I get the following message - The system cannot find the path specified ...
I use power shell, cmd, bash, reinstalling to other directories, changing the path to nvm root. WTF?

@SnipUndercover
Copy link

I am having the exact same issue and I found this workaround:

  1. Install nvm-windows to a safe path (such as %programfiles%)
  2. Move the nvm directory to the unsafe path (it installs to %appdata% by default)
  3. Create a symlink via mklink /d "%programfiles%\nvm" "%appdata%\nvm" (you may need to run as administrator)

As you can see, I was able to install a version of node successfully.
Screenshot

@belsouza
Copy link

Hi! In my case, the installation was the same as it was shown (in the users folder), but the error was fatal - and the error message doesn't match the situation at all.
It must be something related to the user's machine or operating system. I can't even program applications with react on my machine anymore because of the forced obsolescence of the software.

Capturar

@DockorDo
Copy link

Thanks to you, my problem is solved.

@rmnkk
Copy link

rmnkk commented Aug 16, 2022

After reading @JJnne's comment, I tried this:

PS C:\WINDOWS\system32> nvm root "C:\Users\François\AppData\Roaming\nvm"

Root has been set to C:\Users\François\AppData\Roaming\nvm
PS C:\WINDOWS\system32> nvm install latest
Downloading node.js version 10.11.0 (64-bit)...
Complete
Creating C:\Users\François\AppData\Roaming\nvm\temp

Downloading npm version 6.4.1... Complete
Installing npm v6.4.1...

Installation complete. If you want to use this version, type

nvm use 10.11.0

and it worked! Thanks. But only enclosing the path in quotes!

Still have this problem. My user name is written using Cyrillic characters. Setting root helps. Thank you

@DenisLopatin
Copy link

@rmnkk change nvm directory. Use nvm root and set root as some directory without cyrillic characters. I set it as C:\node_versions for example. Try it

@MMCXXXIV
Copy link

This worked great! Thank you.
Just rename your Path when install from C:\Users[yourNameHere]\AppData\Roaming\nvm => C:\node_versions

@songzhonghuasongzhonghua

@JJnne thank you for your advice,it works

@yoni333
Copy link

yoni333 commented Feb 12, 2023

by the - there is a new alternative to NVM that already fix all of this problems it is call -- VOLTA
https://github.com/volta-cli/volta

it is also give you the ability to define in the different node js vesrsion per folder

@devwebaleksey
Copy link

The problem was solved by the nm root command C:\Users\username\AppData\Roaming\nvm . Write your name here as in the account.

@NasDev07
Copy link

NasDev07 commented Sep 2, 2023

help me, why can't install node in nvm.

`$ nvm install 14.17.0

Downloading node.js version 14.17.0 (64-bit)...
Error while creating C:\Users\nvm\v14.17.0\node64.exe - open C:\Users\nvm\v14.17
.0\node64.exe: The system cannot find the path specified.
Could not download node.js v14.17.0 64-bit executable.
`

@ThanhDatwd
Copy link

Does your user name have spaces in it? Example C:\Users\john doe\AppData\Roaming\nvm

how can i fix it

@escandiel
Copy link

Im with the same error, my name is "João Victor" and i already tried everything, in git bash and in cmd and everything that you guys said it i tried...
cmd-error
erro-gitbash

@Miho1254
Copy link

Hi guys!

I had same issue. For me cause of the problem was special characters in my windows username. I was able to fix this problem by re-setting Nvm root: nvm root C:\Users\username\AppData\Roaming\nvm

thanks, this solution still works after 8 years lmao

@chergn
Copy link

chergn commented Feb 27, 2024

好奇怪,本来我也是。重新打开cmd又好了,神奇
image

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