Installing a dependency with Bower from URL and specify version
Use a git endpoint instead of a package name: bower install https://github.com/jquery/jquery.git#2.0.3
Use a git endpoint instead of a package name: bower install https://github.com/jquery/jquery.git#2.0.3
The official Bower page stated: N.B. If you aren’t authoring a package that is intended to be consumed by others (e.g., you’re building a web app), you should always check installed packages into source control. Make sure to check out the link in the quote, it discusses some pro and cons. The main pro it … Read more
devDependencies are for the development-related scripts, e.g. unit testing, packaging scripts, documentation generation, etc. dependencies are required for production use, and assumed required for dev as well. Including devDependencies within dependencies, as you have it, won’t be harmful; the module will just bundle more files (bytes) during the install – consuming more (unnecessary) resources. From … Read more
A description that best describes the difference between npm and bower is: npm manages JavaScript modules called packages and Bower manages front-end components (i.e. css, html, and JavaScript) called components. npm is also used to install bower. Here is an expansive article on npm and bower (does not cover volo) it goes into plenty of … Read more
Specify a git commit SHA instead of a version: bower install ‘<git-url>#<git-commit-sha>’ Example: bower install ‘git://github.com/yeoman/stringify-object.git#d2895fb97d’ You can also specify a branch instead of a SHA, but that’s generally not recommended unless it’s in development and you control all the parts.
Just like in this question (npm global path prefix) all you need is to set proper npm prefix. UNIX: $ npm config set prefix /usr/local $ npm install -g bower $ which bower >> /usr/local/bin/bower Windows ans NVM: $ npm config set prefix /c/Users/xxxxxxx/AppData/Roaming/nvm/v8.9.2 $ npm install -g bower Then bower should be located just … Read more
Running this command was my mistake. npm config set prefix /usr/local Path /usr/local is not for windows. This command changed the prefix variable at ‘C:\Program Files (x86)\Git\local’ To access and make a change to this directory I need to run my cmd as administrator. So I did: Run cmd as administrator Run npm config edit … Read more
sudo ln -s /usr/bin/nodejs /usr/bin/node or install legacy nodejs: sudo apt-get install nodejs-legacy As seen in this GitHub issue.
Bower is deprecating their registry hosted with Heroku. http://bower.herokuapp.com/ Will not be accessible anymore or it might be down intermittently, therefore, forcing users to a new registry. Users working on old bower versions can update the .bowerrc file with the following data. { “registry”: “https://registry.bower.io” } .bowerrc file can be located at the same folder … Read more
Adding Git to Windows 7/8/8.1 Path Note: You must have msysgit installed on your machine. Also, the path to my Git installation is “C:\Program Files (x86)\Git”. Yours might be different. Please check where yours is before continuing. Open the Windows Environment Variables/Path Window. Right-click on My Computer -> Properties Click Advanced System Settings link from … Read more