Sunday 21 May 2017

npm doesn't fetch transtive dependency

I have a dependency on node-telegram-bot-api. When I run npm install I see from npm logs that it brings transitive dependency BUT there's a missing dependency of bluebird that causes runtime exception.

request-promise@4.2.1 depends on bluebird@3.5.0 (see here) but for some reason npm does not fetch it. How can we explain it? And how do I force it to do so?

This is the tree npm prints:

19:50:51 +-- node-telegram-bot-api@0.27.1 
19:50:51 | +-- array.prototype.findindex@2.0.2 
19:50:51 | | +-- define-properties@1.1.2 
19:50:51 | | | +-- foreach@2.0.5 
19:50:51 | | | `-- object-keys@1.0.11 
19:50:51 | | `-- es-abstract@1.7.0 
19:50:51 | |   +-- es-to-primitive@1.1.1 
19:50:51 | |   | +-- is-date-object@1.0.1 
19:50:51 | |   | `-- is-symbol@1.0.1 
19:50:51 | |   +-- function-bind@1.1.0 
19:50:51 | |   +-- is-callable@1.1.3 
19:50:51 | |   `-- is-regex@1.0.4 
19:50:51 | |     `-- has@1.0.1 
19:50:51 | +-- bl@1.2.1 
19:50:51 | +-- eventemitter3@2.0.3 
19:50:51 | +-- file-type@3.9.0 
19:50:51 | +-- pump@1.0.2 
19:50:51 | | +-- end-of-stream@1.4.0 
19:50:51 | | `-- once@1.4.0 
19:50:51 | |   `-- wrappy@1.0.2 
19:50:51 | `-- request-promise@4.2.1 
19:50:51 |   +-- request-promise-core@1.1.1 
19:50:51 |   `-- stealthy-require@1.1.1 

Using npm@3.10.10, inside node-6 docker.



via Or Shachar

No comments:

Post a Comment