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

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

Open
rdbisme opened this issue Apr 25, 2023 · 4 comments

Comments

@rdbisme
Copy link

rdbisme commented Apr 25, 2023

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: [email protected], [email protected]
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.

@arvinxx
Copy link
Owner

arvinxx commented Apr 26, 2023

I will try to figure it out

@bryanjtc
Copy link
Contributor

bryanjtc commented Dec 4, 2023

any workaround to fix this?

@joshpppp
Copy link

@arvinxx
Copy link
Owner

arvinxx commented Dec 11, 2023

@rdbisme do you try with ?

npx -p commitlint -p "gitmoji" commitlint --from "origin/${CI_DEFAULT_BRANCH}" --to HEAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants