1
resposta

não consegui completar o dowload e instalação do nestjs pelo terminal.

fretappdev@fretapp-dev:~$ npm install -g @nestjs/cli npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/lib/nodemodules/@nestjs npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/lib/nodemodules/@nestjs' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/lib/nodemodules/@nestjs'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/lib/nodemodules/@nestjs' 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/fretappdev/.npm/logs/2022-02-25T1515_29_125Z-debug-0.log

1 resposta

Tenta reinstalar o NodeJS que também vai reinstalar o npm.

Referência: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

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