我有bower.json文件
{
"name": "MyProject",
"version": "1.0.0",
"dependencies": {
"angular": "1.4.7",
"angular-animate": "1.4.7",
"angular-bootstrap": "0.13.4",
"angular-cookies": "1.4.7",
"angular-inview": "1.5.4",
"angular-messages": "1.4.7",
"angular-mocks": "1.4.7",
"angular-route": "1.4.7",
"angular-sanitize": "1.4.7",
"angular-scroll": "0.7.2",
"angular-touch": "1.4.7",
"angular-ui-router": "0.2.15",
"angularytics": "0.4.0"
},
"appPath": "public/app",
"private": true
}
当我在控制台中运行bower list
时,我得到:
...
├── angular#1.4.7 (latest is 1.5.0-build.4300+sha.f02811f)
├─┬ angular-animate#1.4.7 (latest is 1.5.0-build.4300+sha.f02811f)
│ └── angular#1.4.7 (latest is 1.5.0-build.4300+sha.f02811f)
├─┬ angular-bootstrap#0.13.4
│ └── angular#1.4.7 (1.5.0-build.4300+sha.f02811f available)
├─┬ angular-cookies#1.4.7 (latest is 1.5.0-build.4300+sha.f02811f)
...
但是,我对稳定版本更感兴趣,而且我对开发版本不感兴趣。我可以以某种方式修复它吗?据我所知,鲍尔我不认为这是可能的,但也许我错了。
答案 0 :(得分:1)
我通过安装npm-check-updates来解决了这个问题:
npm install -g npm-check-updates
然后运行
npm-check-updates -m bower
(谢谢Oliver Salzburg)