why doesn't bower update angular upgrade my angular?

后端 未结 2 1925
悲哀的现实
悲哀的现实 2020-12-17 15:31

I have angular 1.2.3 and I want to upgrade to 1.2.7

> cat bower.json
...
  \"dependencies\": {
    \"json3\": \"~3.2.4\",
    \"jquery\": \"~1.9.1\",
             


        
2条回答
  •  时光取名叫无心
    2020-12-17 16:12

    I think the problem is about this

    "angular": "~1.2.3" 
    

    https://github.com/isaacs/node-semver/

    "Reasonably close to 1.2.3". 
    

    so you should change it with

    "angular": "1.2.7" 
    

    UPDATE: (it's in the comment but I think it's better point it out)

    Note that you can’t pass a package name to the update command and only update that individual package: it will still update ’em all. You can get the latest version of a single package by running bower install ; it will just over-write the version you currently have

提交回复
热议问题