1
resposta

npm i --save-dev @fortawesome/fontawesome-free

Nao instala o npm i --save-dev @fortawesome/fontawesome-free

e na hora de importar gera erro.

precido de ajuda por favor

found 0 vulnerabilities emanuel@emanuel-Inspiron-3501:~/alura-tracker$ npm i --save-dev @fortawesome/fontawesome-free npm ERR! code EACCES npm ERR! syscall open npm ERR! path /home/emanuel/alura-tracker/package-lock.json npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, open '/home/emanuel/alura-tracker/package-lock.json' npm ERR! [Error: EACCES: permission denied, open '/home/emanuel/alura-tracker/package-lock.json'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: '/home/emanuel/alura-tracker/package-lock.json' 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/emanuel/.npm/logs/2022-08-06T1353_44_917Z-debug-0.log emanuel@emanuel-Inspiron-3501:~/alura-tracker$

1 resposta

Salve, Emanuel.

Essa parte do erro parece dar uma dica:

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! 

Se você está usando linux ou mac, talvez tenha que dar permissões na pasta ou rodar o comando como sudo. Se estiver usando windows, talvez baste executar o terminal como administrador.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software