Firebase npm install Error

김동욱·2024년 1월 22일
0
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   required: { node: '>=18.0.0 || >=20.0.0' },
npm WARN EBADENGINE   current: { node: 'v16.14.2', npm: '8.7.0' }
npm WARN EBADENGINE }

changed 574 packages, and audited 575 packages in 14s

53 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Node.js 버전(v16.14.2)과 npm 버전(8.7.0)이 프로젝트 또는 패키지에서 요구하는 최소 버전과 일치하지 않는다는 내용

# npm update 명령어
npm install -g npm@latest
n latest 

명령어를 통해서 업데이트가 가능하나 업데이트가 불가하여 nodejs 직접 삭제 후 재설치

npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/firebase-tools
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/firebase-tools'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/firebase-tools'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/firebase-tools'
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: /Users/flower/.npm/_logs/2024-01-22T02_35_17_404Z-debug-0.log

시스템 또는 사용자 디렉토리에 대한 쓰기 권한이 없을 때 발생

권한 추가하여 설치하기

sudo npm install -g firebase-tools
profile
백엔드 개발자

0개의 댓글