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

NPM warning breaks cz prompts when using scripts entry #964

Open
wallzero opened this issue Jan 19, 2023 · 0 comments
Open

NPM warning breaks cz prompts when using scripts entry #964

wallzero opened this issue Jan 19, 2023 · 0 comments

Comments

@wallzero
Copy link

When running commands from scripts, any NPM warnings seem to break cz prompts.

For example, running npm run commit (which runs git-cz) triggers some NPM warnings in my environment that then break the cz prompts. The same warnings are triggered by npx cz but the prompt continues to work normally. Using yarn to run the script (yarn run commit) also works normally.

The given error is caused by the Flatpak vscodium environment. The error is:

npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
npm WARN config location in the cache, and they are managed by
npm WARN config     [`cacache`](http://npm.im/cacache).

I can't remove the entry tmp in /app/etc/npmrc given that file is read-only in the vscodium Flatpak.

For now it's easy to use npx git-cz or yarn run git-cz. This may not even be a direct issue with git-cz but instead npm, node, or my shell environment. But I thought I'd share in case anyone else comes across this annoyance.

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