[Vuejs]-Install Bootstrap-Vue from Git with npm

0👍

You can add a github repo branch as a dependancy in package.json:

{
  "dependencies": {
    "bootstrap-vue": "bootstrap-vue/bootstrap-vue#dev"
  }
}

This will add the dev branch as a dependency.

But you will still need to build BootstrapVue once you run yarn install (or similar for npm). Once installed, cd into node_modules/bootstrap-vue and run yarn install && yarn build to build BootstrapVue’s /dist and /es directories. Once built, then you can CD back up to your project and run your project build.

Leave a comment