yarn: how to install scoped package from github branch -
i want install @nuxtjs/axios, from fork
url - https://github.com/bjornmelgaard/modules
branch - axios_vue_overlap_fix
package name - @nuxtjs/axios
what command should use?
edit: question had both npm , yarn tags. i'll leave in case else finds useful.
as far understand, npm maps github packages repository roots. since nuxtjs "modules" repository appears pile of largely-independent packages, might have jump through hoops.
i got working way.
install whole fork, note git+https syntax, , branch identifier # following repo url:
npm install git+https://git@github.com/bjornmelgaard/modules#axios_vue_overlap_fix then npm install dependencies of axios module (because of repo structure, npm not you):
cd node_modules/@nuxtjs/modules/modules/axios && npm install and require so:
const axios = require('@nuxtjs/modules/modules/axios')
Comments
Post a Comment