Skip to content

npm install fails on docify created website #2323

@markscott-ms

Description

@markscott-ms

Bug Report

Steps to Reproduce:

  1. In calm repo
  2. cd calm/architecture; calm docify --architecture calm-2.json --output website
  3. cd website
  4. npm i

Expected Result:

Successful npm install of required docusaurus packages.

Actual Result:

xxxx@xxxxxx:~/architecture-as-code/calm/architecture/website$ npm i
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @docusaurus/theme-mermaid@3.10.0
npm error Found: @mermaid-js/layout-elk@0.2.1
npm error node_modules/@mermaid-js/layout-elk
npm error   @mermaid-js/layout-elk@"^0.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional @mermaid-js/layout-elk@"^0.1.9" from @docusaurus/theme-mermaid@3.10.0
npm error node_modules/@docusaurus/theme-mermaid
npm error   @docusaurus/theme-mermaid@"^3.9.0" from the root project
npm error
npm error Conflicting peer dependency: @mermaid-js/layout-elk@0.1.9
npm error node_modules/@mermaid-js/layout-elk
npm error   peerOptional @mermaid-js/layout-elk@"^0.1.9" from @docusaurus/theme-mermaid@3.10.0
npm error   node_modules/@docusaurus/theme-mermaid
npm error     @docusaurus/theme-mermaid@"^3.9.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

Environment:

Ubuntu 24 (within Windows 11 WSL2)
CALM CLI 1.37.0
Node 24.14.1

Additional Context:

Also seen by @yt-ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcliAffects `cli` codedocifyChanges to the docify CLI commandscope-agreedRequirements reviewed by a maintainer. Ready to be implemented

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions