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

156
Visualizações
ANY ng command will fail when trying angular due to invalid character error in ng file

The \AppData\Roaming\npm\node_modules@angular\cli\bin\ng.js file cannot be opened and it gives an error whenever I try to use an ng command anywhere, be it in an angular project or elsewhere.

The error is as follows: Script: (my username)\AppData\Roaming\npm\node_modules@angular\cli\bin\ng.js Line: 1 Character: 1 Error: Invalid Character Code: 800A03F6 Source: Compilationerror Microsoft Jscript

What I have tried:

using ng commands in different project -- same error reinstall npm, angular, removing the node modules in all combinations Setting the angular path in the environment variables

What happened before: ng command was missing possibly due to stuff related to python install. This error is replaced with my current problem when reinstall is done.

I have reinstalled everything to the fullest extent but the problem keeps persisting. I can use my angular project by running 'npm run ng serve' and that weirdly works.

Does anyone have ANY idea what might cause this problem

EDIT: I have somehow managed to resolve the problem but I have no clear answer what was the cause of it all. I did reinstall nodeJS on my computer which MIGHT have been broken during another project.

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

0

In my case this error occured because of permissions on windows. Try to run cmd as Administrator.

over 4 years ago · Santiago Trujillo Relatório

0

Remove the user environment variable

C:\Users\AppData\Roaming\npm\node_modules@angular\cli\bin 

It worked for me after losing a day of life looking for a solution

over 4 years ago · Santiago Trujillo Relatório

0

Deleting and reinstalling node.js did not fix it. The issues started when I installed latest CLI which is 13.

I removed npm folder from C:\Users\username\AppData\Roaming then I installed the previous version

npm install -g @angular/cli@12.0.0

I do not get the error anymore.

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