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

Local "npm install" fails #2721

Open
hendrikebbers opened this issue Dec 16, 2024 · 1 comment
Open

Local "npm install" fails #2721

hendrikebbers opened this issue Dec 16, 2024 · 1 comment

Comments

@hendrikebbers
Copy link
Member

I try to build the lib (using current master version) but a local "npm install" fails. It looks to me like a conflict with TypeScript versions:

hendrikebbers@MacBookPro hedera-sdk-js % npm install                                                             
(node:98442) ExperimentalWarning: CommonJS module /opt/homebrew/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /opt/homebrew/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: @hashgraph/[email protected]
npm error Found: [email protected]
npm error node_modules/typescript
npm error   dev typescript@"5.5.4" from the root project
npm error
npm error Could not resolve dependency:
npm error peer typescript@"4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x" from [email protected]
npm error node_modules/typedoc
npm error   dev typedoc@"^0.25.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/hendrikebbers/.npm/_logs/2024-12-16T09_32_20_393Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/hendrikebbers/.npm/_logs/2024-12-16T09_32_20_393Z-debug-0.log
@ivaylonikolov7
Copy link
Contributor

Going to take a look at it but I would recommend you to use the command task install. It's going to execute a couple of additional commands that you may find that you need to use the SDK correctly.

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

No branches or pull requests

2 participants