← back to code snippets

npm install my github repo as a node module

Posted on December 13th, 2017 by Graeme

 npm install --save github:username/reponame

Source: Stackoverflow


You could also do

npm i alex-cory/fasthacks


npm i github:alex-cory/fasthacks


npm i user_or_org/repo_name


After that, when any changes are commited and pushed to the the repo installed, just run the following to get them into the other project: 

npm update github:username/reponame

There's probs some better way to do this, but this will work for now!