npm Community Forum (Archive)

The npm community forum has been discontinued.

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

Unhandled rejection Error:operation not permitted

What I Wanted to Do

I want to execute :npm install express -g

What Happened Instead

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!

Reproduction Steps


Platform Info

$ npm --versions
C:\Users\Andy>npm --versions
{ npm: '6.4.1',
  ares: '1.15.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.34.0',
  node: '10.15.1',
  openssl: '1.1.0j',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '',
  zlib: '1.2.11' }
$ node -p process.platform

someone help me:sweat:

The “cb() never called!” does not tell us what went wrong, and there is an underlying error. Was there another error displayed? Possibly not as…

There were issues before npm 6.6.0 with the actual error not getting displayed, so I recommend updating npm.

There is a monstrous long thread tracking the issue, but the main point is update npm to get better error reporting in this case! [crash] npm ERR! cb() never called!

Closing as a duplicate.