next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.31k stars 411 forks source link

npm resolution error report #747

Open hanqunfeng opened 4 months ago

hanqunfeng commented 4 months ago

Issue Checklist

Expected behavior

While resolving: hexo-site@0.0.0 Found: hexo@7.0.0 node_modules/hexo hexo@"^7.0.0" from the root project

Could not resolve dependency: peer hexo@"^4.2.0 || ^5.2.0 || ^6.3.0" from hexo-related-posts@1.5.1 node_modules/hexo-related-posts hexo-related-posts@"*" from the root project

Actual behavior

Could not resolve dependency: peer hexo@"^4.2.0 || ^5.2.0 || ^6.3.0" from hexo-related-posts@1.5.1 node_modules/hexo-related-posts hexo-related-posts@"*" from the root project

Steps to reproduce the behavior

While resolving: hexo-site@0.0.0 Found: hexo@7.0.0 node_modules/hexo hexo@"^7.0.0" from the root project

Could not resolve dependency: peer hexo@"^4.2.0 || ^5.2.0 || ^6.3.0" from hexo-related-posts@1.5.1 node_modules/hexo-related-posts hexo-related-posts@"*" from the root project

Node.js and NPM Information

While resolving: hexo-site@0.0.0
Found: hexo@7.0.0
node_modules/hexo
  hexo@"^7.0.0" from the root project

Could not resolve dependency:
peer hexo@"^4.2.0 || ^5.2.0 || ^6.3.0" from hexo-related-posts@1.5.1
node_modules/hexo-related-posts
  hexo-related-posts@"*" from the root project

Package dependencies Information

While resolving: hexo-site@0.0.0
Found: hexo@7.0.0
node_modules/hexo
  hexo@"^7.0.0" from the root project

Could not resolve dependency:
peer hexo@"^4.2.0 || ^5.2.0 || ^6.3.0" from hexo-related-posts@1.5.1
node_modules/hexo-related-posts
  hexo-related-posts@"*" from the root project

Hexo Configuration

While resolving: hexo-site@0.0.0
Found: hexo@7.0.0
node_modules/hexo
  hexo@"^7.0.0" from the root project

Could not resolve dependency:
peer hexo@"^4.2.0 || ^5.2.0 || ^6.3.0" from hexo-related-posts@1.5.1
node_modules/hexo-related-posts
  hexo-related-posts@"*" from the root project

NexT Configuration

While resolving: hexo-site@0.0.0
Found: hexo@7.0.0
node_modules/hexo
  hexo@"^7.0.0" from the root project

Could not resolve dependency:
peer hexo@"^4.2.0 || ^5.2.0 || ^6.3.0" from hexo-related-posts@1.5.1
node_modules/hexo-related-posts
  hexo-related-posts@"*" from the root project

Other Information

npm resolution error report

2024-01-05T02:12:55.069Z

While resolving: hexo-site@0.0.0 Found: hexo@7.0.0 node_modules/hexo hexo@"^7.0.0" from the root project

Could not resolve dependency: peer hexo@"^4.2.0 || ^5.2.0 || ^6.3.0" from hexo-related-posts@1.5.1 node_modules/hexo-related-posts hexo-related-posts@"*" from the root project

Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{ "code": "ERESOLVE", "current": { "name": "hexo", "version": "7.0.0", "whileInstalling": { "name": "hexo-site", "version": "0.0.0", "path": "/Users/hanqf/blog" }, "location": "node_modules/hexo", "isWorkspace": false, "dependents": [ { "type": "prod", "name": "hexo", "spec": "^7.0.0", "from": { "location": "/Users/hanqf/blog" } } ] }, "currentEdge": { "type": "prod", "name": "hexo", "spec": "^7.0.0", "from": { "location": "/Users/hanqf/blog" } }, "edge": { "type": "peer", "name": "hexo", "spec": "^4.2.0 || ^5.2.0 || ^6.3.0", "error": "INVALID", "from": { "name": "hexo-related-posts", "version": "1.5.1", "whileInstalling": { "name": "hexo-site", "version": "0.0.0", "path": "/Users/hanqf/blog" }, "location": "node_modules/hexo-related-posts", "isWorkspace": false, "dependents": [ { "type": "prod", "name": "hexo-related-posts", "spec": "*", "from": { "location": "/Users/hanqf/blog" } } ] } }, "strictPeerDeps": false, "force": false }

welcome[bot] commented 4 months ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

stevenjoezhang commented 1 month ago

Try the latest version

npm i hexo-related-posts@1.5.2