Skip to content

next-contentlayer installation ERROR in next 14.0.3 on terminal #605

Closed
@Sahad-09

Description

@Sahad-09

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR! next@"14.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^12 || ^13" from [email protected]
npm ERR! node_modules/next-contentlayer
npm ERR! next-contentlayer@"^0.3.4" 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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\Sahad\AppData\Local\npm-cache_logs\2023-11-23T07_19_34_982Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\Sahad\AppData\Local\npm-cache_logs\2023-11-23T07_19_34_982Z-debug-0.log

image

This error does not appear when I changed the version to next 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions