'error cb() never called! - error while doing npm install

I am trying to install node modules in my angular project. But while doing npm install I get the following error

npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/aino/.npm/_logs/2020-02-18T06_45_41_169Z-debug.log

And the error log is as follows

10005 silly decomposeActions refresh-package-json [email protected]
10006 silly decomposeActions fetch [email protected]
10007 silly decomposeActions extract [email protected]
10008 silly decomposeActions preinstall [email protected]
10009 silly decomposeActions build [email protected]
10010 silly decomposeActions install [email protected]
10011 silly decomposeActions postinstall [email protected]
10012 silly decomposeActions finalize [email protected]
10013 silly decomposeActions refresh-package-json [email protected]
10014 silly decomposeActions fetch [email protected]
10015 silly decomposeActions extract [email protected]
10016 silly decomposeActions preinstall [email protected]
10017 silly decomposeActions build [email protected]
10018 silly decomposeActions install [email protected]
10019 silly decomposeActions postinstall [email protected]
.....


Solution 1:[1]

in my case ( jenkins CI ), workspace was corrupted. cleaning the workspace helped.

Solution 2:[2]

For me, it was because of a connection problem.

So try to check your connection.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 chandu
Solution 2 Malak Ben Dalla