Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node v12 doesn't resolve dependancies #116

Open
shuckc opened this issue Dec 22, 2021 · 1 comment
Open

Node v12 doesn't resolve dependancies #116

shuckc opened this issue Dec 22, 2021 · 1 comment

Comments

@shuckc
Copy link

shuckc commented Dec 22, 2021

Ubuntu 21.10 node with a fresh checkout (following last commit merging #109) is unable to resolve dependencies:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.10
Release:	21.10
Codename:	impish

$ node -v
v12.22.5

$ git log --oneline
d083a3c (HEAD -> master, origin/master, origin/HEAD) Update packages (#109)
5a9bd6c Update CI to node 14 (#108)
05d38f2 Update ELKjs to latest version (#106)
db7a86e Add information about installing from source and compiling ts to README (#107)
1c8c7b1 Remove generic-bus alias as it was causing issues, add some documentation on WIDTH parameter (#103)
9a44cea Multimux, tribuffer, better icons, and inout support (#102)
d928270 Caught exception so grouped SVG elements without a pin ID would not t… (#96)
...

$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: netlistsvg@1.0.2
npm ERR! Found: @types/jest@26.0.24
npm ERR! node_modules/@types/jest
npm ERR!   dev @types/jest@"^26.0.23" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @types/jest@"^27.0.0" from ts-jest@27.1.2
npm ERR! node_modules/ts-jest
npm ERR!   dev ts-jest@"^27.0.3" 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/chris/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/chris/.npm/_logs/2021-12-22T14_07_16_216Z-debug.log

If I revert to 5a9bd6c it builds OK

Is this because "@types/jest": "^26.0.23" and "jest": "^27.0.6" should be the same version?

@nobodywasishere
Copy link
Contributor

Ah my bad. I'll fix this soon. In the meantime you should be able to --force it and have it work fine; jest is just used for if you're running npm run test.

@shuckc shuckc changed the title Node doesn't resolve dependancies Node v12 doesn't resolve dependancies Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants