인프런 커뮤니티 질문&답변

이한성님의 프로필 이미지
이한성

작성한 질문수

비전공자를 위한 진짜 입문 올인원 개발 부트캠프

Sequelize, Sqlite 설치하기

npm install -g sequelize-cli

작성

·

280

1

안녕하세요 그랩님

npm install -g  sequelize-cli가 안깔립니다ㅜ

혹시나 해서 global을 제외하고 

npm install sequelize-cli로만 했더니 깔렸는데 이렇게 사용해도 괜찮은건가요?

에러코드 올려봅니다

매번 감사합니다 그랩님

npm ERR! code EACCES

npm ERR! syscall symlink

npm ERR! path ../lib/node_modules/sequelize-cli/lib/sequelize

npm ERR! dest /usr/local/bin/sequelize

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'

npm ERR!  [OperationalError: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'] {

npm ERR!   cause: [Error: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'] {

npm ERR!     errno: -13,

npm ERR!     code: 'EACCES',

npm ERR!     syscall: 'symlink',

npm ERR!     path: '../lib/node_modules/sequelize-cli/lib/sequelize',

npm ERR!     dest: '/usr/local/bin/sequelize'

npm ERR!   },

npm ERR!   errno: -13,

npm ERR!   code: 'EACCES',

npm ERR!   syscall: 'symlink',

npm ERR!   path: '../lib/node_modules/sequelize-cli/lib/sequelize',

npm ERR!   dest: '/usr/local/bin/sequelize'

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/sumin/.npm/_logs/2021-06-08T10_23_16_558Z-debug.log

sumin@192-168-1-117 grab-market-server % npm install -g sequelize-cli

npm ERR! code EACCES

npm ERR! syscall symlink

npm ERR! path ../lib/node_modules/sequelize-cli/lib/sequelize

npm ERR! dest /usr/local/bin/sequelize

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'

npm ERR!  [OperationalError: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'] {

npm ERR!   cause: [Error: EACCES: permission denied, symlink '../lib/node_modules/sequelize-cli/lib/sequelize' -> '/usr/local/bin/sequelize'] {

npm ERR!     errno: -13,

npm ERR!     code: 'EACCES',

npm ERR!     syscall: 'symlink',

npm ERR!     path: '../lib/node_modules/sequelize-cli/lib/sequelize',

npm ERR!     dest: '/usr/local/bin/sequelize'

npm ERR!   },

npm ERR!   errno: -13,

npm ERR!   code: 'EACCES',

npm ERR!   syscall: 'symlink',

npm ERR!   path: '../lib/node_modules/sequelize-cli/lib/sequelize',

npm ERR!   dest: '/usr/local/bin/sequelize'

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/sumin/.npm/_logs/2021-06-08T10_25_06_402Z-debug.log

sumin@192-168-1-117 grab-market-server % npm install sequelize-cli

npm WARN grab-market-server@1.0.0 No description

npm WARN grab-market-server@1.0.0 No repository field.

+ sequelize-cli@6.2.0

added 72 packages from 46 contributors and audited 258 packages in 3.405s

5 packages are looking for funding

  run `npm fund` for details

found 0 vulnerabilities

답변 2

1

그랩님의 프로필 이미지
그랩
지식공유자

안녕하세요! 현재 맥 운영체제를 사용중이신가요?

종종 안되는 경우들이 보이는데 아래 블로그 글을 참고해보시면 좋을 것 같습니다!

http://junil-hwang.com/blog/npm-global-error/

만약 영구적으로 적용하고 싶다면 아래 글을 참고해주세요~!
https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

0

이한성님의 프로필 이미지
이한성
질문자

바로 해결됐어요 감사합니다!!

이한성님의 프로필 이미지
이한성

작성한 질문수

질문하기