I would like to install bootstrap-loader from github in my project using npm
Currently they are maintaining two version of this project which are comaptible with webpack version 1 and 2.
I would like to install version 1. What npm command I should use to install this?
I tried using below one but it is not working.
npm install git://github.com/shakacode/bootstrap-loader.git[#v1] --Save
Just do:
e.g.
One thing I also want to mention: it's not a good idea to check in the package.json for the build server auto pull the change. Instead, put the npm i (first) command into the build command, and let server just install and replace the package.
The Doc of the npm defines that only tag/version can be specified after repo_url.
Here is the Doc: https://docs.npmjs.com/cli/install
you can give git pattern as version, yarn and npm are clever enough to resolve from a git repo.
or for npm
There are extra square brackets in the command you tried.
To install the latest version from the
v1
branch, you can use: