Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/427.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 无法进行bower安装_Javascript_Bower_Bower Install - Fatal编程技术网

Javascript 无法进行bower安装

Javascript 无法进行bower安装,javascript,bower,bower-install,Javascript,Bower,Bower Install,我正在尝试使用bower安装。当我在上面运行bowerinfo时,我得到0.10.9和0.10.10作为版本。但当我尝试安装这些特定版本时,它会给出norestarget错误 我认为这是缓存问题,所以我也尝试使用--force选项。我甚至尝试在没有提及任何特定版本的情况下安装,以获得相同的错误。我是不是遗漏了什么 以下是bower info和bower install命令输出- $ bower info angular-material-data-table bower cached

我正在尝试使用bower安装。当我在上面运行
bowerinfo
时,我得到
0.10.9
0.10.10
作为版本。但当我尝试安装这些特定版本时,它会给出
norestarget
错误

我认为这是缓存问题,所以我也尝试使用
--force
选项。我甚至尝试在没有提及任何特定版本的情况下安装,以获得相同的错误。我是不是遗漏了什么

以下是
bower info
bower install
命令输出-

$ bower info angular-material-data-table
bower cached        https://github.com/daniel-nagy/md-data-table.git#0.10.10
bower validate      0.10.10 against https://github.com/daniel-nagy/md-data-table.git#*

{
  name: 'angular-material-data-table',
  version: '0.10.10',
  description: 'Material Design data table.',
  main: [
    'dist/md-data-table.js',
    'dist/md-data-table.css'
  ],
  repository: {
    type: 'git',
    url: 'git://github.com/daniel-nagy/md-data-table.git'
  },
  authors: [
    'Daniel Nagy'
  ],
  homepage: 'http://danielnagy.me/md-data-table',
  license: 'MIT',
  keywords: [
    'material',
    'table',
    'md-data-table'
  ],
  ignore: [
    '**/.*',
    'app',
    'bower_components',
    'node_modules',
    'src',
    'Gruntfile.js'
  ],
  dependencies: {
    angular: '^1.4.0',
    'angular-material': '^1.0.0'
  }
}

Available versions:
  - 0.10.10
  - 0.10.9
  - 0.10.8
  - 0.10.7
  - 0.10.6
  - 0.10.5
  - 0.10.4
  - 0.10.3
  - 0.10.2
  - 0.10.1
  - 0.10.0
  - 0.9.15
  - 0.9.14
  - 0.9.13
  - 0.9.12
  - 0.9.11
  - 0.9.10
  - 0.9.9
  - 0.9.8
  - 0.9.7
  - 0.9.6
  - 0.9.5
  - 0.9.4
  - 0.9.3
  - 0.9.2
  - 0.9.1
  - 0.9.0
  - 0.8.14
  - 0.8.13
  - 0.8.12
  - 0.8.11
  - 0.8.10
  - 0.8.9
  - 0.8.8
  - 0.8.7
  - 0.8.6
  - 0.8.5
  - 0.8.4
  - 0.8.3
  - 0.8.2
  - 0.8.1
  - 0.8.0
  - 0.7.6

You can request info for a specific version with 'bower info angular-material-data-table#<version>'



$ bower install --save-exact angular-material-data-table#0.10.9
bower not-cached    https://github.com/russellmorley/angular-sig-pad.git#undefined
bower resolve       https://github.com/russellmorley/angular-sig-pad.git#undefined
bower cached        https://github.com/daniel-nagy/md-data-table.git#0.10.9
bower validate      0.10.9 against https://github.com/daniel-nagy/md-data-table.git#0.10.9
bower ENORESTARGET  Tag/branch undefined does not exist

Additional error details:
Available tags: v0.1.0
Available branches: master
$ 
$bower信息角材料数据表
鲍尔缓存https://github.com/daniel-nagy/md-data-table.git#0.10.10
bower验证0.10.10与https://github.com/daniel-nagy/md-data-table.git#*
{
名称:“角度材质数据表”,
版本:“0.10.10”,
说明:“材料设计数据表”,
主要内容:[
'dist/md data table.js',
'dist/md数据表.css'
],
存储库:{
键入:“git”,
网址:'git://github.com/daniel-nagy/md-data-table.git'
},
作者:[
“丹尼尔·纳吉”
],
主页:'http://danielnagy.me/md-data-table',
许可证:'麻省理工学院',
关键词:[
“材料”,
“表”,
“md数据表”
],
忽略:[
'**/.*',
“应用程序”,
“鲍尔_组件”,
“节点_模块”,
“src”,
“Gruntfile.js”
],
依赖项:{
角度:“^1.4.0”,
“角度材质”:“^1.0.0”
}
}
可用版本:
- 0.10.10
- 0.10.9
- 0.10.8
- 0.10.7
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.15
- 0.9.14
- 0.9.13
- 0.9.12
- 0.9.11
- 0.9.10
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.14
- 0.8.13
- 0.8.12
- 0.8.11
- 0.8.10
- 0.8.9
- 0.8.8
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.6
您可以使用“bower info angular material data table#”请求特定版本的信息
$bower安装--保存精确的角度材料数据表#0.10.9
鲍尔没有被缓存https://github.com/russellmorley/angular-sig-pad.git#undefined
鲍尔决心https://github.com/russellmorley/angular-sig-pad.git#undefined
鲍尔缓存https://github.com/daniel-nagy/md-data-table.git#0.10.9
bower验证0.10.9与https://github.com/daniel-nagy/md-data-table.git#0.10.9
bower NorestTarget标记/未定义的分支不存在
其他错误详细信息:
可用标签:v0.1.0
可用分支:主
$ 

由于在我的bower.json中有一个不同的依赖项,分支设置为未定义,所以我收到了错误

"angular-sig-pad": "https://github.com/russellmorley/angular-sig-pad.git#undefined"

所以这不是角材料数据表的问题。下次在这里发布问题之前,我最好检查一下我的bower.json。

为什么要使用bower?