https://unpkg.com/vue-router@4
Unpkg.com provides npm-based CDN links. The above link will always point to the latest release on npm. You can also use a specific version/tag via URLs like https://unpkg.com/vue-router@3.0.0/dist/vue-router.js
.
npm install vue-router@4
You will have to clone directly from GitHub and build vue-router
yourself if
you want to use the latest dev build.
git clone https://github.com/vuejs/vue-router.git node_modules/vue-router
cd node_modules/vue-router
npm install
npm run build