node.js - How to reference module from dependencies of another module -


i have project 2 dependenies:

{   dependencies: {     "nommon": "*",     "descript": "*"   } } 

module descript depends on module nommon. want nommon reference same in descript dependencies.

so, want this:

{   dependencies: {     "nommon": "./decript/node_modules/nommon",     "descript": "*"   } } 

i know npm link manual operation.

i want package.json dependency declaration after npm install , running package.

currently solved adding symlink manually.

if understand : descript project need nommon run , don't want use npm link ?

the easiest way publish module nommon npm registry. in case set dependencies other module.

if don't want module become public, can store tarball of nommon on server , set dependency url resolving tarball. can use git repository

take here :

https://npmjs.org/doc/developers.html

in package

i hope

ostro


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -