How do I use a local version of a module in node.js
. For example, in my app, I installed coffee-script:
npm install coffee-script
Include coffee-script in package.json with the specific version required in each project, typically like this:
"dependencies":{
"coffee-script": ">= 1.2.0"
Then run npm install to install dependencies in each project. This will install the specified version of coffee-script which will be accessible locally to each project.