Skip to content

Instantly share code, notes, and snippets.

@adnasa
Created January 28, 2016 13:41
Show Gist options
  • Save adnasa/86947b429970996684b8 to your computer and use it in GitHub Desktop.
Save adnasa/86947b429970996684b8 to your computer and use it in GitHub Desktop.
Setting an external node module in your project with the hassle
// in random folder (NOT INSIDE THE PROJECT)
$ git clone tracking.js
$ cd tracking.js
$ sudo npm link
// in your project
$ cd maximalg/node_modules
$ npm install tracking.js
$ sudo npm link tracking.js
Now you can update tracking.js in the repo folder
and it will in turn update the tracking.js installed in your project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment