node.js - npm3 install breaks the flat structure if installing module from local folder -


i have following dependency tree:

module_a@1.9.15     module_b@1.0.22     module_c@1.1.2          module_b@1.0.22 

(the important part module_b dependency of both module_a , module_c)

now when create initial npm install (npm3) resolved correctly using 1 instance of module_b in flat manner:

module_a@1.9.15     module_b@1.0.22     module_c@1.1.2 

now want reinstall module_b local folder after changing code able test (without having push module_b registry). following:

npm install ../module_b 

(module_b resides locally in same folder module_a)

but when unfortunately flat structure breaks , module structure looks this:

module_a@1.9.15 /home/gsanta/ ├── module_b@1.0.22  invalid ├─┬ module_c@1.1.2 │ └── module_b@1.0.22 

why working way? i'm still using same version of module_b (1.0.22) installed local folder.

how npm determine if 2 dependent modules same version (it looks it's not version field in package.json)?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -