Я пытаюсь построить проект на IntelliJ Idead, используя JHipster, Gradle и Node JS. npm Команда установки прекрасно работает, но когда я пытаюсь запустить ./gradlew, я получаю следующий вывод с ELIFECYCLE ERROR (npm ERR!)
0 info it worked if it ends with ok
1 warn npm npm does not support Node.js v13.6.0
2 warn npm You should probably upgrade to a newer version of node as we
3 warn npm can't make any promises that npm will work with this version.
4 warn npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
5 warn npm You can find the latest version at https://nodejs.org/
6 verbose cli [
6 verbose cli '/home/florian/.nvm/versions/node/v13.6.0/bin/node',
6 verbose cli '/home/florian/.nvm/versions/node/v8.10.0/bin/npm',
6 verbose cli 'run',
6 verbose cli 'webpack:build'
6 verbose cli ]
7 info using npm@5.6.0
8 info using node@v13.6.0
9 verbose run-script [ 'prewebpack:build', 'webpack:build', 'postwebpack:build' ]
10 info lifecycle app@0.0.0~prewebpack:build: app@0.0.0
11 info lifecycle app@0.0.0~webpack:build: app@0.0.0
12 verbose lifecycle app@0.0.0~webpack:build: unsafe-perm in lifecycle true
13 verbose lifecycle app@0.0.0~webpack:build: PATH: /home/florian/.nvm/versions/node/v8.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/florian/IdeaProjects/app/node_modules/.bin:/opt/gradle/gradle-5.2.1/bin:/home/florian/.nvm/versions/node/v13.6.0/bin:/home/florian/.poetry/bin:/opt/gradle/gradle-5.2.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
14 verbose lifecycle app@0.0.0~webpack:build: CWD: /home/florian/IdeaProjects/app
15 silly lifecycle app@0.0.0~webpack:build: Args: [ '-c', 'npm run cleanup && npm run webpack:build:main' ]
16 silly lifecycle app@0.0.0~webpack:build: Returned: code: 2 signal: null
17 info lifecycle app@0.0.0~webpack:build: Failed to exec webpack:build script
18 verbose stack Error: app@0.0.0 webpack:build: `npm run cleanup && npm run webpack:build:main`
18 verbose stack Exit status 2
18 verbose stack at EventEmitter.<anonymous> (/home/florian/.nvm/versions/node/v8.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
18 verbose stack at EventEmitter.emit (events.js:321:20)
18 verbose stack at ChildProcess.<anonymous> (/home/florian/.nvm/versions/node/v8.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
18 verbose stack at ChildProcess.emit (events.js:321:20)
18 verbose stack at maybeClose (internal/child_process.js:1028:16)
18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
19 verbose pkgid app@0.0.0
20 verbose cwd /home/florian/IdeaProjects/app
21 verbose Linux 5.0.0-37-generic
22 verbose argv "/home/florian/.nvm/versions/node/v13.6.0/bin/node" "/home/florian/.nvm/versions/node/v8.10.0/bin/npm" "run" "webpack:build"
23 verbose node v13.6.0
24 verbose npm v5.6.0
25 error code ELIFECYCLE
26 error errno 2
27 error app@0.0.0 webpack:build: `npm run cleanup && npm run webpack:build:main`
27 error Exit status 2
28 error Failed at the eyesr@0.0.0 webpack:build script.
28 error This is probably not a problem with npm. There is likely additional logging output above.
29 verbose exit [ 2, true ]
Я перепробовал много возможных вариантов способы исправить эту проблему: - очистить кеш и собрать заново => все та же ошибка - проверить node_modules chmod => все та же ошибка - изменить версию узла на 8.10.0 и 12.14.1 => все та же ошибка
У вас есть какое-нибудь решение?
Большое спасибо, Флориан.