I'm currently running a node project in Jenkins and this is the error I'm getting.
Node Version
v10.15.0
NPM Version
6.4.1
Installing dependencies
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! /var/lib/jenkins/.npm/_logs/2019-02-18T06_02_02_727Z-debug.log
The Jenkins server has a node 10.15.0
installed and npm 6.4.1
.
This is my build script:
echo "Node Version"
node --version
echo "NPM Version"
npm --version
echo "Installing dependencies"
npm install
I saw from other thread in StackOverflow npm ERR cb() never called
that this can resolve by adding engines
in package.json
I already tried adding this
"engines": {
"node": "10.15.0"
}
but still no luck.