Не удается найти модуль 'lodash / assign' во время работы на jenkins - PullRequest
0 голосов
/ 10 апреля 2020

Во время работы конвейера Jenkins мы получаем ошибку ниже Версия узла: 10 реагирует Версия: 16.04 версия пряжи: v1.22.0

yarn build
yarn run v1.22.0
$ cross-env NODE_PATH=src node scripts/build.js
internal/modules/cjs/loader.js:596
    throw err;
Error: Cannot find module 'lodash/assign'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/var/lib/jenkins/workspace/rontend-build_npm-vulnerability1/node_modules/last-call-webpack-plugin/src/index.js:1:78)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
error Command failed with exit code 1.
...