iobroker-community-adapters/ioBroker.telegram

Telegram causes npm error due to very outdated dependency

mcm1957 opened this issue · 0 comments

Telegram causes npm error due to outdated dependencies.

Adapterversion 1.1.6 AND 2.0.1

pi@pi4:~ $ cd /opt/iobroker && npm ls cli
npm ERR! code ELSPROBLEMS
npm ERR! invalid: cli@1.0.1 /opt/iobroker/node_modules/cli
iobroker.inst@3.0.0 /opt/iobroker
├─┬ iobroker.sainlogic@0.10.5
│ └─┬ jshint@2.13.6
│   └── cli@1.0.1
└─┬ iobroker.telegram@1.16.0
  └─┬ socksv5@0.0.6
    └─┬ ipv6@3.1.1
      └── cli@1.0.1 **deduped invalid: "0.4.x" from node_modules/socksv5/node_modules/ipv6**

It seems that cli 0.4.x no longer is available.
In addition ipv6 package is deprecated.

telegram requests:

  "socksv5description": "Taken from https://github.com/christophgysin/socksv5/commits/fix-normailzeargs",
  "optionalDependencies": {
    "socksv5": "https://github.com/christophgysin/socksv5/tarball/7b4eba5b30ecdb6d9e656dcfede1e6884dc7c6d9"
  },

https://github.com/iobroker-community-adapters/ioBroker.telegram/blob/223326305c5e083a72281060769e12f508ff01d7/package.json#L34C1-L37C5

But this repo seems to be outdated at all. Last commit was jan 2016 (!).
In addition its not clear why a github reference instead of a npm reference is used.

Please check dependency to socksv5.