2015-09-04 46 views
0
zandeMacBook-Pro:reactQa root# bower -v 
1.5.2 
zandeMacBook-Pro:reactQa root# sudo bower init 
bower ESUDO   Cannot be run with sudo 

Additional error details: 
Since bower is a user command, there is no need to execute it with superuser permissions. 
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any  necessary repairs. 

http://www.joyent.com/blog/installing-node-and-npm 
https://gist.github.com/isaacs/579814 

You can however run a command with sudo using --allow-root option 
zandeMacBook-Pro:reactQa root# 

當安裝涼亭下面的提示,I型:錯誤的MAC

sudo bower init --allow-root 

初始化成功。但安裝引導程序時發生錯誤。

我嘗試運行sudo bower install bootstrap --allow-root

輸出結果是在下面

zandeMacBook-Pro:reactQa root# sudo bower install bootstrap --allow-root 
bower not-cached git://github.com/twbs/bootstrap.git#* 
bower resolve  git://github.com/twbs/bootstrap.git#* 
bower ECMDERR  Failed to execute "git ls-remote --tags --heads git://github.com/twbs/bootstrap.git", exit code of #69 You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements. 

Additional error details: 
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements. 

任何幫助嗎?

+0

所以......你運行'xcodebuild -license'嗎? – Peter

+0

Hammm ....所有我只需要接受許可證,它的工作原理。 –

回答

0

經評論確認,運行「xcodebuild -license」接受許可證修復了問題。確保始終先閱讀錯誤消息。