node.js - How do I update each dependency in bower.json to the latest version? -
for example here dependencies bower.json
"dependencies": { "bootstrap": "~3.1.1", "socket.io-client": "1.2.1", "underscore": "~1.6.0", "angular-bootstrap": "~0.12.0" }
i can see underscore has newer 1.7.0 version , bootstrap has newer version of 3.3.1. if npm change versions *
"dependencies": { "bootstrap": "*", "socket.io-client": "*", "underscore": "*", "angular-bootstrap": "*" }
and run npm update --save npm download latest versions , replace * in package.json file. doesn't work bower. how bower same thing , update packages @ once newest version?
you using tilde ranges allows patch-level changes if minor version specified on comparator. allows minor-level changes if not. example:
~3.1.1 := >=3.1.1 <3.(1+1).0 := >=3.1.1 <3.2.0
in case means dependencies defined tilde range , specify major.minor.patch version (such ~3.1.1) latest patch version.
can use "latest"
version target , latest version, example: "bootstrap": "latest"
.
Comments
Post a Comment