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

Erro ao tentar instalar o @angular/cli

Alguém tem alguma luz para esse BO? Já pesquisei em vários fóruns, mas nenhuma resposta solucionou esse problema. Vlw!

~ » npm install -g @angular/cli -243- 08:56:09 npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/lib/nodemodules/@angular npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/lib/nodemodules/@angular' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/lib/nodemodules/@angular'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/lib/nodemodules/@angular' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! /home/waldirjunior/.npm/logs/2023-03-30T1156_49_835Z-debug-0.log

1 resposta
solução!

O ChatGPT me ajudou kkkk

Era só colocar o lazarento do sudo no começo!

Vou deixar o BO aqui caso outros tenham o mesmo problema.