无法使用bower

时间:2016-02-06 20:45:39

标签: twitter-bootstrap-3 npm bower

我正在尝试在我的Mac上的app目录中安装bootstrap。我尝试过尝试解决这个问题的不同主题的提示,但似乎与我的问题有所不同。

以下是我在命令行中输入的命令以及它吐出的错误。



Jains-iMac:conFusion thejains$ bower init
? name conFusion
? description Website for an awesome restaurant
? main file index.html
? what types of modules does this package expose? 
? keywords conFusion, Fusion Restaurant
? authors Mayank Jain
? license MIT
? homepage 
? set currently installed components as dependencies? Yes
? add commonly ignored files to ignore list? Yes
? would you like to mark this package as private which prevents it from being accidentally published to the registry? Yes

{
  name: 'conFusion',
  description: 'Website for an awesome restaurant',
  main: 'index.html',
  moduleType: [],
  keywords: [
    'conFusion',
    'Fusion',
    'Restaurant'
  ],
  authors: [
    'Mayank Jain'
  ],
  license: 'MIT',
  homepage: '',
  private: true,
  ignore: [
    '**/.*',
    'node_modules',
    'bower_components',
    'test',
    'tests'
  ]
}

? Looks good? Yes
Jains-iMac:conFusion thejains$ bower install bootstrap -S
bower bootstrap#*           not-cached git://github.com/twbs/bootstrap.git#*
bower bootstrap#*              resolve git://github.com/twbs/bootstrap.git#*
bower bootstrap#*              ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/twbs/bootstrap.git", exit code of #69   Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

Additional error details:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Jains-iMac:conFusion thejains$ bower install twitter
bower twitter#*             not-cached git://github.com/twbs/bootstrap.git#*
bower twitter#*                resolve git://github.com/twbs/bootstrap.git#*
bower twitter#*                ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/twbs/bootstrap.git", exit code of #69   Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

Additional error details:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.




P.S。我已经尝试用sudo chown更改权限,还尝试清理缓存。他们没有工作。

0 个答案:

没有答案