2
respostas

Problema node js

C:\Users\MATHEUS>npm install @ angular / cli -g npm ERR! code EINVALIDTAGNAME npm ERR! Invalid tag name "@": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\MATHEUS\AppData\Local\npm-cache_logs\2021-07-27T14_03_14_713Z-debug.log

C:\Users\MATHEUS>npm install @angular/cli -g npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

changed 235 packages, and audited 236 packages in 1m

23 packages are looking for funding run npm fund for details

found 0 vulnerabilities

C:\Users\MATHEUS>ng --version

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ / | | | | |/ _ | '| | | | | | | / _ | | | | (| | || | | (| | | | || | | | // \_| ||_, |_,||__,|| ___|__|| |___/

Angular CLI: 12.1.3 Node: 16.5.0 (Unsupported) Package Manager: npm 7.20.1 OS: win32 x64

Angular: ...

Package Version

@angular-devkit/architect 0.1201.3 (cli-only) @angular-devkit/core 12.1.3 (cli-only) @angular-devkit/schematics 12.1.3 (cli-only) @schematics/angular 12.1.3 (cli-only)

Warning: The current version of Node (16.5.0) is not supported by Angular.

Como resolvo isso o node Unsuported , naõ consigo criar novo projeto .

2 respostas

Preciso deixar meu angular atualizado , sem warn e que possa fica tranquilo para criar novos projetos.

Fala Matheus, tudo bem?

Você pode tentar os seguintes comandos:

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

O primeiro para desinstalar o angular e o segundo para instalar a versão mais recente.

Testa ai e conta pra gente se deu certo :D