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

568
Visualizações
Angular CLI v13 - Can not run "ng" commands

I upgraded Angular CLI to v13 globally, and when I try to use ng command it gives me this error:

enter image description here

I saw here that Angular v13 is compatible with Node v16.10.x so I installed Node v16.10.0 and it does not work again.

I perform standard operations:

npm uninstall -g @angular/cli
npm install -g @angular/cli@latest

I even try to clear npm cache and it still didn't work.

When I downgrade it and install Angular CLI v12 globally, everything works again.

Is this some known Angular CLI v13 issue?

Environment:

Windows 10 (win32 x64)

Update:

As a lot of answers suggested, I changed Windows Scripting Host to Node.js to run the .js files. Now ng command is executed, BUT whatever command I type, it always give me ng help output with all Available Commands. It's like all commands are mapped to ng help command.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

I hope this solution works for you:

  1. Remove the user environment variable: C:\Users\AppData\Roaming\npm\node_modules@angular\cli\bin

  2. Uninstall angular

  3. Uninstall nodejs

  4. Reboot your pc

  5. Reinstall nodejs & angular

over 4 years ago · Santiago Trujillo Relatório

0

On Windows .js files are associated to Windows Scripting Host by default, so the script will not be run with Node. You can open explorer and find a .js file, you can check that it's not considered JavaScript.

Open a JavaScript file's properties and in the associated programs (or open with), link the node.js exe file to open that kind of files.

over 4 years ago · Santiago Trujillo Relatório

0

  1. Use the following command to delete your version

npm uninstall -g @angular/cli

  1. Unistall the node file with the following command

npm uninstall

  1. Go to your computer's file explorer Enter drive C. In the "search This PC" section, search for the word "App Data" and then "Roaming" Delete your "npm" file in the "Roaming" folder
  2. Enter the "npm install" command again
  3. Now it's time to enter the command "npm install -g @ angular / cli"
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