В настоящее время я запускаю проект узла в Jenkins, и это ошибка, которую я получаю.
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
На сервере Jenkins установлен узел 10.15.0
и npm 6.4.1
.
Это мой скрипт сборки:
echo "Node Version"
node --version
echo "NPM Version"
npm --version
echo "Installing dependencies"
npm install
Я видел из другого потока в StackOverflow npm ERR cb () никогда не вызывал , что можно решить, добавив engines
в package.json
Я уже пытался добавить это
"engines": {
"node": "10.15.0"
}
, но все равно не повезло.