Eu testei a versão 17 e a 14 do Node JS (v14.17.3) Tentei o 17 e agora estou com o 14 conforme abaixo. Angular CLI: 14.0.0 Node: 14.17.3 Package Manager: npm 6.14.13 OS: win32 x64
Tentei em dois computadores diferentes, já reiniciei o computador, procurei no github, no stackoverflow e nada... Pelo amor de Deus me ajudem!
Assim que eu dou o comando ng serve após o ng new criar todas as pastas e arquivos encaro esse erro:
Build at: 2024-01-29T21:06:22.141Z - Hash: 4c80553a0af2ab05 - Time: 12545ms
Error: node_modules/@types/node/ts4.8/crypto.d.ts:4477:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'crypto' must be of type 'Crypto', but here has type 'Crypto'.
4477 var crypto: webcrypto.Crypto; ~~~~~~
node_modules/typescript/lib/lib.dom.d.ts:18084:13 18084 declare var crypto: Crypto; ~~~~~~ 'crypto' was also declared here.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
× Failed to compile.