npm add @nostr-dev-kit/ndk-svelte-components doesnt work for me:

npm add @nostr-dev-kit/ndk-svelte-components

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

Reply to this note

Please Login to reply.

Discussion

Hmm thatโ€™s weird af ; does it say anything else? What npm version?

Yes, all the output:

npm add @nostr-dev-kit/ndk-svelte-components

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: linktr@0.0.1

npm ERR! Found: svelte@4.0.1

npm ERR! node_modules/svelte

npm ERR! dev svelte@"^4.0.0" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer svelte@"^3.54.0" from @nostr-dev-kit/ndk-svelte-components@0.3.0

npm ERR! node_modules/@nostr-dev-kit/ndk-svelte-components

npm ERR! @nostr-dev-kit/ndk-svelte-components@"*" 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.

Looks that its because the svelte version?

npm 8.19.3