npm ci produces a tonn of excess warnings on install

cli
help-wanted
priority:low
triaged

(Jehy) #1

What I Wanted to Do

Install npm deps with npm ci

What Happened Instead

Everything is being installed fine but I got a tonn of errors like

(node:21662) Warning: .then() only accepts functions but was passed: [object Object]

(seems like and error in each package - not only each dependency, but also each subdependency).

Reproduction Steps

Unfortunately, I can only reproduce this bug in docker environment. But check details section, please.

Details

After some research, I discovered that is is bug in npm dependency, http://npmjs.com/package/cipm
Bug is pretty clear and solution is very simple, I made an issue
https://github.com/zkat/cipm/issues/58
and a pull request to fix it
https://github.com/zkat/cipm/pull/59
Pull request was accepted but it is not merged.
I don’t want to hasten anyone, but I think that many people besides my developers are having bad experience with latest node and npm, so I think it is very critical. I hope that @zkat can find some time to check this.

Platform Info

$ npm --versions
{ npm: '6.4.1',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.34.0',
  node: '10.12.0',
  openssl: '1.1.0i',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '6.8.275.32-node.35',
  zlib: '1.2.11' }

$ node -p process.platform
linux