Skip to content

conventional-changelog-lint-config-gitmoji not found when running commitlint with npx #668

Open
@rdbisme

Description

@rdbisme

Any idea why this:

$ npx -p commitlint -p "commitlint-config-gitmoji" commitlint --from "origin/${CI_DEFAULT_BRANCH}" --to HEAD
npm WARN exec The following packages were not found and will be installed: commitlint-config-gitmoji@2.3.1, commitlint@17.6.1
Error: Cannot find module "conventional-changelog-lint-config-gitmoji" from "/builds/xxx/xxx-ci"
    at resolveId (/builds/xxx/xxx-ci/.cache/npm/_npx/49ea1ae74129e566/node_modules/@commitlint/resolve-extends/src/index.ts:131:14)
    at resolveConfig (/builds/xxx/xxx-ci/.cache/npm/_npx/49ea1ae74129e566/node_modules/@commitlint/resolve-extends/src/index.ts:105:20)
    at /builds/xxx/xxx-ci/.cache/npm/_npx/49ea1ae74129e566/node_modules/@commitlint/resolve-extends/src/index.ts:51:20
    at Array.reduce (<anonymous>)
    at loadExtends (/builds/xxx/xxx-ci/.cache/npm/_npx/49ea1ae74129e566/node_modules/@commitlint/resolve-extends/src/index.ts:49:13)
    at resolveExtends (/builds/xxx/xxx-ci/.cache/npm/_npx/49ea1ae74129e566/node_modules/@commitlint/resolve-extends/src/index.ts:25:19)
    at load (/builds/xxx/xxx-ci/.cache/npm/_npx/49ea1ae74129e566/node_modules/@commitlint/load/src/load.ts:56:33)
    at async main (/builds/xxx/xxx-ci/.cache/npm/_npx/49ea1ae74129e566/node_modules/@commitlint/cli/src/cli.ts:214:17) {
  code: 'MODULE_NOT_FOUND'
}

doesn't work? My newbieness wrt JS world might play a role here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions