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 resolution error report #747

Closed
3 tasks done
hanqunfeng opened this issue Jan 5, 2024 · 3 comments
Closed
3 tasks done

npm resolution error report #747

hanqunfeng opened this issue Jan 5, 2024 · 3 comments
Labels
Bug Something isn't working Hexo Plugin Solved

Comments

@hanqunfeng
Copy link

Issue Checklist

Expected behavior

While resolving: [email protected]
Found: [email protected]
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 [email protected]
node_modules/hexo-related-posts
hexo-related-posts@"*" from the root project

Actual behavior

  • Links to demo site with this issue:
  • Links to repository or source code of the blog:
  • Screenshots:
    While resolving: [email protected]
    Found: [email protected]
    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 [email protected]
node_modules/hexo-related-posts
hexo-related-posts@"*" from the root project

Steps to reproduce the behavior

While resolving: [email protected]
Found: [email protected]
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 [email protected]
node_modules/hexo-related-posts
hexo-related-posts@"*" from the root project

Node.js and NPM Information

While resolving: [email protected]
Found: [email protected]
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 [email protected]
node_modules/hexo-related-posts
  hexo-related-posts@"*" from the root project

Package dependencies Information

While resolving: [email protected]
Found: [email protected]
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 [email protected]
node_modules/hexo-related-posts
  hexo-related-posts@"*" from the root project

Hexo Configuration

While resolving: [email protected]
Found: [email protected]
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 [email protected]
node_modules/hexo-related-posts
  hexo-related-posts@"*" from the root project

NexT Configuration

While resolving: [email protected]
Found: [email protected]
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 [email protected]
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: [email protected]
Found: [email protected]
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 [email protected]
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
}

@hanqunfeng hanqunfeng added the Bug Something isn't working label Jan 5, 2024
Copy link

welcome bot commented Jan 5, 2024

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

@stevenjoezhang
Copy link
Member

Try the latest version

@sghuang19
Copy link
Member

Should be fixed by now since they added hexo@7 into peer dependency.

Closing this issue? @stevenjoezhang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Hexo Plugin Solved
Projects
None yet
Development

No branches or pull requests

3 participants