If you use the anonymous URL instead, you won't need ssh keys on the machine to get at it (might be important if you're deploying this somewhere other than your development machine) with something like this in your package.json: "my-package": "git://github.com/my-name/my-package.git",
Also, you can use local packages using "npm link" (even for packages which do not exist in npm): In the directory of your module you want to use: C:\my-package> npm link In your app that wants to use it C:\my-app> npm link my-package This will ignore any version or URL specified in package.json and use your local package instead. Hope this helps, Jimb Esser On Thursday, March 5, 2015 at 6:47:50 AM UTC-8, zladuric wrote: > > You can access your own packages from custom git repos in package.json. > > For example, I have: > > "dependencies": { > "express": : "~4.11.1", > "my-package": > "git+ssh://g...@bitbucket.org:my-org/my-package.git#branch", > .... > } > > npm install/update will update these each time, I think. You can hit > specific branches, tags or refs with #ref part at the end, or just use > master. > > From then on, use it as normal packages: > > var package = require('my-package'); > > Zlatko > > On Tuesday, March 3, 2015 at 5:46:39 PM UTC+1, AaronNGray wrote: >> >> Hi, >> >> I have two possible requirements :- >> >> 1) A local NPM server that I can run on my Windows machine without >> needing to download and store all NPM packages, that will allow me to >> override specific packages with my own GitHub packages. >> >> or >> >> 2) The ability to refer to either GitHub or local packages or both in >> package.json files. >> >> Many thanks in advance, >> >> Aaron >> > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/6d7e07f2-81c5-44f0-a282-3d7ea7961317%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.