• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

npm install -g sequelize-cli 설치 오류

22.07.21 16:34 작성 조회수 197

0

아래에 비슷한 질문이 있어서 해당 댓글 보며 해결해보려고 했는데 잘 안 되어서 질문 남깁니다 ㅠㅠ 어떻게 해결하면 좋을까요?

터미널에 뜨는 에러는 아래와 같습니다...! 맥북 사용하고 있어요!!

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/sequelize-cli
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/sequelize-cli'
npm ERR!  [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/sequelize-cli'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/usr/local/lib/node_modules/sequelize-cli'
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!     /Users/jade/.npm/_logs/2022-07-21T07_25_57_741Z-debug-0.log

답변 1

답변을 작성해보세요.

0

간혹가다 맥북 권한 이슈가 있을 때가 있는 것 같아요ㅠ

sudo npm install sequeilize-cli -g 를 사용해보시는 건 어떠실까요? 

아니면 npx를 활용하시는 것도 방법입니다!