I was watching this nice video about requirejs, backbone and bower and something does not work for me. How can I set latest version of package in bower.json file? In video Jeff says that null should be used to define latest version like this
{ "name": "project name", "version": "1.0.0", "dependencies": { "backbone-amd": null, "underscore-amd": null, "requirejs": null } }
But I have an exception in console that I can't use null value as version number. I couldn't find any info at bower wiki. Does anybody know how to solve this?
If there aren't that many bower packages you have installed, try writing bower install [package_name] --save . This will just update your bower. json file.
Bower lets you query the bower registry via the command line to find a package by a given name and then list its versions. e.g.
Installed packages will be placed in a bower_components directory. This is created in the folder which the bower program was executed. You can change this destination using the configuration options in a . bowerrc file.
You can find the latest version of the npm added in package. json file. If you want to add the latest version either you can run npm install or npm install @latest .
If you are using bower version 1.2.x
, this should work:
{ "name": "project name", "version": "1.0.0", "dependencies": { "backbone-amd": "latest", "underscore-amd": "latest", "requirejs": "latest" } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With