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

npm error upon attempting to install plugin #1

Closed
victorkane opened this issue Nov 13, 2024 · 2 comments
Closed

npm error upon attempting to install plugin #1

victorkane opened this issue Nov 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@victorkane
Copy link

Current package.json:

{
  "name": "pp-online",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro check && astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@astrojs/check": "^0.9.4",
    "@astrojs/starlight": "^0.29.0",
    "@astrojs/starlight-tailwind": "^2.0.3",
    "@astrojs/tailwind": "^5.1.0",
    "astro": "^4.16.10",
    "sharp": "^0.32.5",
    "starlight-blog": "^0.14.1",
    "tailwindcss": "^3.4.4",
    "typescript": "^5.6.3"
  }
}

Getting the following error upon following this plugin's installation instructions:

$ npm i starlight-site-graph
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: starlight-site-graph@0.1.8
npm error Found: @astrojs/starlight@0.29.0
npm error node_modules/@astrojs/starlight
npm error   peer @astrojs/starlight@">=0.9.0" from @astrojs/starlight-tailwind@2.0.3
npm error   node_modules/@astrojs/starlight-tailwind
npm error     @astrojs/starlight-tailwind@"^2.0.3" from the root project
npm error   peer @astrojs/starlight@">=0.28.3" from starlight-blog@0.14.1
npm error   node_modules/starlight-blog
npm error     starlight-blog@"^0.14.1" from the root project
npm error   1 more (the root project)
npm error
npm error Could not resolve dependency:
npm error peerOptional @astrojs/starlight@"^0.28.2" from starlight-site-graph@0.1.8
npm error node_modules/starlight-site-graph
npm error   starlight-site-graph@"*" from the root project
npm error
npm error Conflicting peer dependency: @astrojs/starlight@0.28.6
npm error node_modules/@astrojs/starlight
npm error   peerOptional @astrojs/starlight@"^0.28.2" from starlight-site-graph@0.1.8
npm error   node_modules/starlight-site-graph
npm error     starlight-site-graph@"*" from the root project
@Fevol Fevol added the bug Something isn't working label Nov 13, 2024
@Fevol
Copy link
Owner

Fevol commented Nov 13, 2024

Thanks for the issue report, I normally use bun, and it never gave a warning about this version mismatch.
It seems like I accidentally used ^ instead of >= for the versioning. For now, you can use npm i starlight-site-graph --legacy-peer-deps to install the package.
I'll bring out a new version momentarily which also fixes this version specifier.

@Fevol
Copy link
Owner

Fevol commented Nov 13, 2024

Okay, I can confirm now that with version 0.1.9 this issue should be fixed. Thanks again for the report!

@Fevol Fevol closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants