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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -