2016-09-01 1 views
1

거부 ​​: https://github.com/angular/angular-seed바우어 권한은 나는 다음 각 씨앗 응용 프로그램 사용하고

을 내가 $ bower install을 실행할 때 다음과 같은 오류가 나타납니다

/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:54 
        throw err; 
        ^

Error: EACCES: permission denied, open '/Users/Mac/.config/configstore/bower-github.json' 
You don't have access to this file. 
at Error (native) 
at Object.fs.openSync (fs.js:640:18) 
at Object.fs.readFileSync (fs.js:508:33) 
at Object.get (/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:35:26) 
at Object.Configstore (/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:28:44) 
at readCachedConfig (/usr/local/lib/node_modules/bower/lib/config.js:19:23) 
at defaultConfig (/usr/local/lib/node_modules/bower/lib/config.js:11:12) 
at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:16:32) 
at Module._compile (module.js:556:32) 
at Object.Module._extensions..js (module.js:565:10) 

가 어떻게 문제를 해결합니까를?

+0

가 해당 파일의 권한을 살펴 보았다나요? 어쩌면 그것이 생성 된 이후로 올바른 권한을 얻지 못했습니다 –

+0

"sudo bower install"을 사용해 보셨습니까? 이것도 작동하지 않으면 시스템에서 .config 위치에 대한 사용자 및 그룹을 변경해야 할 수 있습니다. 참조 : https://github.com/bower/bower/issues/2262. 그것들은 "sudo chown -R $ USER : $ GROUP ~/.npm" 과 "sudo chown -R $ USER : $ GROUP ~/.config"를 사용한다고 말합니다. –

+0

@ LukeP.Issac, 나는'sudo bower 설치'와 그 성공하지 못했습니다. 어느 쪽도 권한을 변경하지 않았습니다. 나는 사용자와 그룹 .cong 파일을 조사 할 것이다. – runningraptor

답변

0

좋아요, 그래서 여러 채널에 여러 사람에게 물어 보니 문제가 해결되었습니다. 나는 누군가가 나와 같은 이슈를 가지고있는 경우에 대비하여 여기에 게시 할 것이라고 생각했다. 나는 다음과 같은 명령

$ sudo chown -R $USER:$GROUP ~/.npm 

다음

$ sudo chown -R $USER:$GROUP ~/.config 

다음

$ bower init 

가 답변을 완료했다 후

$ bower install