Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

[Dúvida] Erro ao instalar o angular/cli

Print do erro ao instalar o angular via linha de comando o que pode estar ocorrendo? anexo o log mais detalhado abaixo.:

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@9.5.1
2 info using node@v18.16.0
3 timing npm:load:whichnode Completed in 5ms
4 timing config:load:defaults Completed in 4ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 3ms
6 timing config:load:builtin Completed in 3ms
7 timing config:load:cli Completed in 3ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:C:\WINDOWS\system32\.npmrc Completed in 1ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:C:\Users\Guilherme\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\Guilherme\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:setEnvs Completed in 2ms
16 timing config:load Completed in 19ms
17 timing npm:load:configload Completed in 19ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 1ms
20 verbose title npm show @angular/cli@14.0.0
21 verbose argv "show" "@angular/cli@14.0.0"
22 timing npm:load:setTitle Completed in 2ms
23 timing config:load:flatten Completed in 6ms
24 timing npm:load:display Completed in 8ms
25 verbose logfile logs-max:10 dir:C:\Users\Guilherme\AppData\Local\npm-cache\_logs\2023-06-22T22_09_23_652Z-
26 verbose logfile C:\Users\Guilherme\AppData\Local\npm-cache\_logs\2023-06-22T22_09_23_652Z-debug-0.log
27 timing npm:load:logFile Completed in 11ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 47ms
31 silly logfile start cleaning logs, removing 2 files
32 silly logfile done cleaning log files
33 timing command:show Completed in 70312ms
34 verbose type system
35 verbose stack FetchError: request to https://registry.npmjs.org/@angular%2fcli failed, reason: self-signed certificate in certificate chain
35 verbose stack     at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
35 verbose stack     at ClientRequest.emit (node:events:513:28)
35 verbose stack     at TLSSocket.socketErrorListener (node:_http_client:502:9)
35 verbose stack     at TLSSocket.emit (node:events:525:35)
35 verbose stack     at emitErrorNT (node:internal/streams/destroy:151:8)
35 verbose stack     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
35 verbose stack     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
36 verbose cwd C:\WINDOWS\system32
37 verbose Windows_NT 10.0.19042
38 verbose node v18.16.0
39 verbose npm  v9.5.1
40 error code SELF_SIGNED_CERT_IN_CHAIN
41 error errno SELF_SIGNED_CERT_IN_CHAIN
42 error request to https://registry.npmjs.org/@angular%2fcli failed, reason: self-signed certificate in certificate chain
43 verbose exit 1
44 timing npm Completed in 70492ms
45 verbose code 1
46 error A complete log of this run can be found in:
46 error     C:\Users\Guilherme\AppData\Local\npm-cache\_logs\2023-06-22T22_09_23_652Z-debug-0.log
1 resposta
solução!

Eu já consegui resolver usando o comando abaixo: Insira aqui a descrição dessa imagem para ajudar na acessibilidade

depois é só tentar instalar novamente: Insira aqui a descrição dessa imagem para ajudar na acessibilidade

Resultado obtido, como esperado: Insira aqui a descrição dessa imagem para ajudar na acessibilidade