작성
·
326
1
Vue cli 생성이 불가합니다
노드버전을 최신화 하면 될꺼라고 다른질문자 답변을 보았습니다
이마 예전에 중급강의를 보고 nvm 을 설치했던거 같습니다.
그래서 nvm 으로 lts버전 설치후 최신버전으로 디폴트를 했는데 계속 6. 버전으로 돌아갑니다 ….
그리고 밑에는 cli 설치후 나오는 화면인데 어떤문제인지 모르겠습니다 ㅜ 도와주세요
kimjongwon@KIMJONGWONui-MacBookPro learn-vue-js-main % npm install -g @vue/cli
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN checkPermissions Missing write access to /Users/kimjongwon/.nvm/versions/node/v6.11.1/lib/node_modules/@vue/cli
npm WARN checkPermissions Missing write access to /Users/kimjongwon/.nvm/versions/node/v6.11.1/lib/node_modules/@vue
/Users/kimjongwon/.nvm/versions/node/v6.11.1/lib
└── @vue/cli@4.5.12
npm ERR! Darwin 20.4.0
npm ERR! argv "/Users/kimjongwon/.nvm/versions/node/v6.14.4/bin/node" "/Users/kimjongwon/.nvm/versions/node/v6.14.4/bin/npm" "install" "-g" "@vue/cli"
npm ERR! node v6.14.4
npm ERR! npm v3.10.10
npm ERR! path /Users/kimjongwon/.nvm/versions/node/v6.11.1/lib/node_modules/@vue/cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/kimjongwon/.nvm/versions/node/v6.11.1/lib/node_modules/@vue/cli'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/Users/kimjongwon/.nvm/versions/node/v6.11.1/lib/node_modules/@vue/cli'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/Users/kimjongwon/.nvm/versions/node/v6.11.1/lib/node_modules/@vue/cli' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/kimjongwon/Desktop/learn-vue-js-main/npm-debug.log
kimjongwon@KIMJONGWONui-MacBookPro learn-vue-js-main %
답변 1
0
안녕하세요 종원님, 첨부해주신 로그를 보니 현재 OS에 로그인된 계정에 관리자 권한이 없어 설치가 되지 않는 것 같아요. 관리자 계정으로 로그인 해주시거나 명령어 앞에 sudo 붙이고 실행해 주시면 될 것 같습니다 :)