我已经设置了Angular应用程序,因此将其推送到Heroku时即可运行bower install
。但是由于版本问题,我遇到了错误。
在bower install
本地运行时,我会看到以下提示:
Unable to find a suitable version for angular, please choose one:
1) angular#1.2.16 which resolved to 1.2.16 and is required by angular-resource#1.2.16
2) angular#1.2.23 which resolved to 1.2.23 and is required by angular-cookies#1.2.23
3) angular#>= 1.0.8 which resolved to 1.2.25 and is required by angular-ui-router#0.2.10
4) angular#^1 which resolved to 1.2.25 and is required by angular-ui-codemirror#0.1.6
5) angular#~1.2.2 which resolved to 1.2.25 and is required by splitter#f5c2195050
6) angular#>=1.0.6 which resolved to 1.2.25 and is required by angular-elastic#2.4.0
7) angular#~1.2 which resolved to 1.2.25 and is required by angular-nanoscroller#0.2.1
8) angular#~1.2.9 which resolved to 1.2.25 and is required by angular-sockjs#0.0.1Prefix the choice with ! to persist it to bower.json
? Answer::
我该怎么办-由于具有反跳功能,实际上我需要Angular 1.3版
我的bower.json
样子是这样的:
{
"name": "myapp",
"version": "0.0.1",
"dependencies": {
"json3": "~3.3.1",
"es5-shim": "~3.1.0",
"angular-resource": "1.2.16",
"angular-sanitize": "1.2.16",
"angular-animate": "1.2.16",
"angular-ui-router": "~0.2.10",
"jquery": "~2.1.1",
"angular-ui-codemirror": "~0.1.6",
"splitter": "*",
"angular-cookies": "~1.2.23",
"angular-elastic": "~2.4.0",
"angular-local-storage": "~0.0.7",
"chance": "~0.5.6",
"nanoscroller": "~0.8.4",
"angular-nanoscroller": "~0.2.1",
"angular-sockjs": "~0.0.1"
}
}
将当前的角度依赖关系更新为1.3.x,并为角度添加分辨率以消除提示:
{
"name": "myapp",
"version": "0.0.1",
"dependencies": {
"angular": "~1.3.x",
"angular-animate": "~1.3.x",
"angular-cookies": "~1.3.x",
"angular-resource": "~1.3.x",
"angular-sanitize": "~1.3.x",
"angular-ui-router": "~0.2.10",
"angular-ui-codemirror": "~0.1.6",
"angular-elastic": "~2.4.0",
"angular-local-storage": "~0.0.7",
"angular-nanoscroller": "~0.2.1",
"angular-sockjs": ">=0.0.1",
"json3": "~3.3.1",
"es5-shim": "~3.1.0",
"jquery": "~2.1.1",
"splitter": "*",
"chance": "~0.5.6",
"nanoscroller": "~0.8.4"
},
"resolutions": {
"angular": "~1.3.x"
}
}
问题内容: 我正在尝试更新我的棱角分明的版本,而且我认为凉亭发疯了。 我的部门: 重要的是:所有的角度模块都是1.2.0-rc.2版本 但是当做 结果如下: 鲍尔似乎认为角度方案1.2.0-rc2需要角度1.0.8 … 这实际上只是错误的:https : //github.com/angular/bower-angular- scenario/tree/v1.2.0-rc.2 bower.json
问题内容: 执行时似乎得到以下提示 不幸的是,执行任何Bower命令都会返回 返回和运行返回。 问题答案: 我假设您是通过Homebrew安装Node.js的,它烦人地将已安装的npm二进制文件放在通常不在用户路径中的位置。您要做的就是添加到$ PATH中。您可以通过将其添加到.bashrc / .bash_profile / .zshrc文件中来实现。 尽管我宁愿卸载Homebrew安装的Nod
问题内容: 凉亭安装角度平度-保存 Bower angular-peity#缓存https://github.com/projectweekend/angular- peity.git#0.0.5 bower angular-peity# 针对https://github.com/projectweekend/angular- peity验证0.0.5 .git# * Bower peity#缓存
当我执行 不幸的是,执行任何bower命令都会返回 返回并运行返回。
这就是我的症状: 我的python:3.7 64位os:ArchLinux
为什么这不起作用?我尝试导入angular网站上显示的MomentDateAdapter,但Visual Studio代码一直抱怨找不到@angular/material moment adapter。我做错了什么? 版本信息:Angular CLI:1.5.0节点:6.11.0操作系统:达尔文x64 Angular:4.4.6。。。动画,通用,编译器,编译器cli,核心,窗体。。。http,语言