Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

998
Visualizações
getting exit status 1 when I run the command nvm use 12.18.0

I have installed nvm on my windows machine and with nvm, I installed 2 node versions but it's not letting me change the version.

Microsoft Windows [Version 10.0.16299.64]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Windows\system32>nvm use 12.18.0
exit status 1: 'C:\Users\Sarmad' is not recognized as an internal or external command,
operable program or batch file.


C:\Windows\system32>nvm version
1.1.7

C:\Windows\system32>nvm ls

  * 15.8.0 (Currently using 64-bit executable)
    12.18.0

C:\Windows\system32>nvm use 12.18.0
exit status 1: 'C:\Users\Ali' is not recognized as an internal or external command,
operable program or batch file.
over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Try to install the nvm directly in C:/ or in other folder without spaces in the PATH.

over 4 years ago · Santiago Trujillo Relatório

0

Ali you are getting this error because you are installing nvm in the default location. And that is your user's directory. Nvm for windows is an attempt to port from the linux and currently does not support spaces in the path.

I spent several hours trying to figure this out and none of these solutions work for me. If you install nvm in c:\tools\ directory, (you might already have one if not just create it) should solve the problem.

over 4 years ago · Santiago Trujillo Relatório

0

I had the same issue in a windows environment. I solved it by running the nvm commands in the command line cmd in the root directory C:/ rather than the integrated terminal of vscode.

  • Run cmd as an administrator
  • Download the node version you want to use and use it
$ nvm download 12.18.0
$ nvm use 12.18.0

If you see the same error, you should configue the PATH in the Environment Variables like this answer is saying.

  • Go back to the other directory or in VsCode and try
node -v

and you'll see that you're using 12.18.0

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda