mac 环境下 bower的安装

发布于 2022-09-01 17:29:47 字数 1729 浏览 16 评论 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# 

按照提示所输入

sudo bower init --allow-root

初始化成功了

可安装 bootstrap 出错了

执行 sudo bower install bootstrap --allow-root



? Looks good? Yes
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.

有大神指导一下可以吗

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

苏大泽ㄣ 2022-09-08 17:29:47

xcode 启动 同意协议

梦忆晨望 2022-09-08 17:29:47

运行 'xcodebuild -license' 了吗?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文