eclipse-sirius / sirius-web

Reusable frontend and backend components for Sirius Web
https://eclipse.dev/sirius/sirius-web.html
Eclipse Public License 2.0
62 stars 45 forks source link

Issue get dependency @eclipse #3541

Open tester-testings opened 1 month ago

tester-testings commented 1 month ago

Hello

I have create a repo remote in my Artifactory with this link : https://npm.pkg.github.com

And when i set this command passing by the repo i have created : npm install @eclipse-sirius/sirius-components@2023.8.0

i have this error :

npm ERR! While resolving: undefined@undefined npm ERR! Found: @apollo/client@3.6.9 npm ERR! node_modules/@apollo/client npm ERR! @apollo/client@"^3.6.9" from the root project npm ERR! peer @apollo/client@"3.6.9" from @eclipse-sirius/sirius-components@2023.8.0 npm ERR! node_modules/@eclipse-sirius/sirius-components npm ERR! @eclipse-sirius/sirius-components@"2023.8.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @apollo/client@"3.8.1" from @eclipse-sirius/sirius-components-core@2023.8.4 npm ERR! node_modules/@eclipse-sirius/sirius-components-core npm ERR! peer @eclipse-sirius/sirius-components-core@"~2023.8.0" from @eclipse-sirius/sirius-components@2023.8.0 npm ERR! node_modules/@eclipse-sirius/sirius-components npm ERR! @eclipse-sirius/sirius-components@"2023.8.0" 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.

and when i set the same command without bassing by my artifactory i have the same error.

Have you idea for resolve this issue.

Thanks in advance

pcdavid commented 4 weeks ago

Hi, Have you setup your GitHub Access Token in your .npmrc as mentioned here? Even thought the GitHub Package's NPM repository is publicly accessible, it requires an access token.

tester-testings commented 4 weeks ago

Hi

Yes i have create a access token yes.

florianbarbin commented 4 weeks ago

Hi,

The issue might be due to a missing package because of the 2023.8 version which depends on a package that no longer exists. Could you try with the last release (2024.5) ?

npm install @eclipse-sirius/sirius-components-core@2024.5.0 npm install @eclipse-sirius/sirius-components-diagrams@2024.5.0 npm install @eclipse-sirius/sirius-components-forms@2024.5.0

Regards,