I want to install @nuxtjs/axios, but from my fork
url - https://github.com/BjornMelgaard/modules
branch - axios_vue_overlap_fix
package name - @nuxtjs/axios
what command should I use?
I want to install @nuxtjs/axios, but from my fork
url - https://github.com/BjornMelgaard/modules
branch - axios_vue_overlap_fix
package name - @nuxtjs/axios
what command should I use?
EDIT: This question originally had both npm and yarn tags. I'll leave this in case someone else finds it useful.
As far as I understand, npm maps GitHub packages to repository roots. Since the nuxtjs "modules" repository appears to be pile of largely-independent packages, you might have to jump through some hoops.
I got it working this way.
Install your whole fork, note the git+https syntax, and the branch identifier # following the repo URL:
npm install git+https://git@github.com/BjornMelgaard/modules#axios_vue_overlap_fix
Then npm install the dependencies of the axios module (because of the repo structure, npm will not do this for you):
cd node_modules/@nuxtjs/modules/modules/axios && npm install
And require it like so:
const axios = require('@nuxtjs/modules/modules/axios')