npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm ci produces a tonn of excess warnings on install

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.


After some research, I discovered that is is bug in npm dependency,
Bug is pretty clear and solution is very simple, I made an issue
and a pull request to fix it
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: '',
  zlib: '1.2.11' }

$ node -p process.platform

Bluebird only shows warnings with certain env variables. Workaround if you want to keep NODE_ENV=development is to add BLUEBIRD_DEBUG=0, which isn’t pretty but makes things more manageable for now.

I don’t see it being accepted by anyone from npm.

I’ve merged the PR, but I won’t be back from holiday until Jan 2 to run a release.