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

Add yarn pnp support #995

Open
KevinEdry opened this issue Aug 25, 2024 · 0 comments
Open

Add yarn pnp support #995

KevinEdry opened this issue Aug 25, 2024 · 0 comments

Comments

@KevinEdry
Copy link

KevinEdry commented Aug 25, 2024

Currently if you are using yarn pnp with this package, you will (understandably) get this error message:

Attempting to initialize using the npm package cz-conventional-changelog
Error: Could not locate node_modules in your project's root directory. Did you forget to npm init or npm install?
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

This is after installing commitizen locally via:

yarn add -D commitizen

and then running to following init command:

yarn dlx commitizen init cz-conventional-changelog --yarn --save-dev --save-exact

This is because yarn pnp does not use node_modules folder to install it's packages.

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

1 participant