npm ci produces a tonn of excess warnings on install

help-wanted
cli
triaged
priority:low
(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
Request: move bugs back to GitHub.com.
(Lars Willighagen) #2

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.

cipm is not maintained
(Kat Marchán) #3

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

2 Likes
(system) closed #4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.