Closed EnziinSystem closed 3 years ago
And
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: academy@0.0.1
npm ERR! Found: react-native-web@0.14.13
npm ERR! node_modules/react-native-web
npm ERR! react-native-web@"~0.14.13" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-web@"~0.13.7" from jest-expo@40.0.2
npm ERR! node_modules/jest-expo
npm ERR! dev jest-expo@"^40.0.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/kevin/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/kevin/.npm/_logs/2021-03-26T02_33_38_340Z-debug.log
Changes to package.json were detected.
Running npm install for you to install the required dependencies.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: academy@0.0.1
npm ERR! Found: react-native-web@0.14.13
npm ERR! node_modules/react-native-web
npm ERR! react-native-web@"~0.14.13" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-web@"~0.13.7" from jest-expo@40.0.2
npm ERR! node_modules/jest-expo
npm ERR! dev jest-expo@"^40.0.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/kevin/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/kevin/.npm/_logs/2021-03-26T02_33_43_370Z-debug.log
Error running generator app: Error: Command failed with exit code 1: npm install
Error: Command failed with exit code 1: npm install
at makeError (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/node_modules/execa/lib/error.js:59:11)
at handlePromise (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/node_modules/execa/index.js:114:26)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
shortMessage: 'Command failed with exit code 1: npm install',
command: 'npm install',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
ERROR! Command failed with exit code 1: npm install
Error: Command failed with exit code 1: npm install
at makeError (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/node_modules/execa/lib/error.js:59:11)
at handlePromise (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/node_modules/execa/index.js:114:26)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
shortMessage: 'Command failed with exit code 1: npm install',
command: 'npm install',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
This looks like an npm
v7 issue with peer-dependencies. Just made a new release with a workaround which adds an .npmrc
with legacy-peer-deps
to the root of the project.
Should be fixed in https://github.com/ruddell/generator-jhipster-react-native/commit/4ec0ee944e0789e0491558ddf947ce1979a145bf
Thank you for reporting and please let me know if you have any more issues.
My JDL file (from demo example):
The error: