bower 설치 오류

2709 단어

bower 설치 오류


bower install을 실행할 때 항상 EACCESS 오류가 발생합니다.
Stack trace:
Error: EACCES, rename '/var/folders/3b/0jd32f912h11193j_6gz4d700000gn/T/$user/bower/google-code-prettify-5938-0i0ZUC'
    at Error (native)

Console trace:
Trace
    at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:82:17)
    at Logger. (/usr/local/lib/node_modules/bower/bin/bower:110:22)
    at Logger.emit (events.js:107:17)
    at Logger.emit (/usr/local/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /usr/local/lib/node_modules/bower/lib/commands/index.js:40:20
    at _rejected (/usr/local/lib/node_modules/bower/node_modules/q/q.js:797:24)
    at /usr/local/lib/node_modules/bower/node_modules/q/q.js:823:30
    at Promise.when (/usr/local/lib/node_modules/bower/node_modules/q/q.js:1035:31)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/node_modules/q/q.js:741:41)
    at /usr/local/lib/node_modules/bower/node_modules/q/q.js:557:44

해결 방법


sudo bower install –allow-root sudo chown -R $USER bower_components
첫 번째 문장, 강제로 루트로 실행;그리고 bower의 의존항을 현재 사용자로 변경합니다.

좋은 웹페이지 즐겨찾기