• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    해결됨

맥으로 진행 도중에 npm install -g nodemon하려니까 에러가 떠요

20.07.23 16:02 작성 조회수 868

1

VSCode에서 저 위에걸 설치하려니까 계속 에러가 뜨네요

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.

라고 뜨는데 혹시 permission 문제 어떻게 해결해야 하나요?

맥os 카탈리나 입니다

답변 5

·

답변을 작성해보세요.

1

우선 permission 문제인 것 같아

sudo npm install -g nodemon을 해보시기 바랍니다.

에러가 또 생긴다면 다시한번 질문주세요!! 감사합니다. 

0

우선 warn은 경고성이라 진행하시는데는 크게 무리가 없을 것 같습니다. 저도 현재 경고의 원인을 찾고 있는중입니다 ㅠㅠ 빠르게 해결해서 답변드리도록 하겠습니다. 원하시는 답변을 못드려서 죄송합니다 ㅠㅠ!! 

0

sykwag7님의 프로필

sykwag7

질문자

2020.07.23

npm은 6.14.6이고 node는 2.0.4입니다! (npm은 터미널에서 npm치니까 마지막에 npm@6.14.6이라 뜨네요)

0

넵넵!!
혹시 npm 버전이랑 node 버전이 어떻게 되시나요??

0

sykwag7님의 프로필

sykwag7

질문자

2020.07.23

express-generator를 sudo 입력하여 설치를 진행 했는데 동훈님의 결과랑 달리 나와서 질문 드립니다

Terrys-MacBook-Pro:nodemon Terry$ sudo npm install -g express-generator

npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

/usr/local/bin/express -> /usr/local/lib/node_modules/express-generator/bin/express-cli.js

+ express-generator@4.16.1

updated 1 package in 1.249s

이렇게 나와서 구글에 mkdirp를 업데이트하는 방법을 찾아봤는데 이해가 안돼서 질문 드립니다... ㅠㅠ

어떻게 업데이트를 해야하나요? sudo npm install -g mkdirp를 실행해도 똑같이 legacy version이라고 나오네요 ㅠㅠ