Skip to content

Cannot find module 'conventionalcommits' #4184

@bennycode

Description

@bennycode

Current Behavior

I am seeing error Cannot find module 'conventionalcommits' when trying to run lerna release.

Expected Behavior

Release command working with conventional commits style.

Steps to Reproduce

Use changelog preset of "conventionalcommits" and you can see the error when running lerna release. When I remove this configuration, the lerna release command works.

Failure Logs / Configuration

lerna.json

{
  "changelogPreset": {
    "issueUrlFormat": "{{host}}/{{owner}}/{{repository}}/issues/{{id}}",
    "name": "conventionalcommits"
  },
  "command": {
    "publish": {
      "allowBranch": "main",
      "conventionalCommits": true,
      "message": "[skip ci] chore: Publish"
    }
  },
  "exact": true,
  "loglevel": "verbose",
  "npmClient": "yarn",
  "npmClientArgs": [
    "--exact"
  ],
  "registry": "https://registry.npmjs.org/",
  "version": "independent",
  "yes": true
}

Environment

Lerna v8.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions