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

corepack - pnpm command not found #1425

Closed
MartinX3 opened this issue Apr 20, 2024 · 4 comments
Closed

corepack - pnpm command not found #1425

MartinX3 opened this issue Apr 20, 2024 · 4 comments

Comments

@MartinX3
Copy link

Arch Linux
IntelliJ IDE

I installed pnpm via corepack enable.
I restarted the system.

On commit it tells me command not found while using pnpm in pre-commit because it isn't in PATH used by husky,
But if I look in the terminal it's inside PATH.

I manually added the pnpm part of my .bashrc (added by corepack) to the husky bash script in the .husky folder to make it work.
I wonder why the PATH is different between husky and my system.
Does husky ignore my .bashrc?

@kaaax0815
Copy link

I have the same problem but on windows.
What did you add to your script?

@MartinX3
Copy link
Author

MartinX3 commented May 2, 2024

@kaaax0815 it seems that problem is linux only and only dedicated to the IntelliJ IDEA.
They have now an open issue ticket about not using the .bashrc if started via the desktop ui.
Starting it via the terminal works fine.

@MartinX3 MartinX3 closed this as completed May 2, 2024
@kaaax0815
Copy link

I have a similar problem on windows and vscode. Using it via terminal also fixes the problem

@MartinX3
Copy link
Author

MartinX3 commented May 2, 2024

I think you need to open an issue ticket at vscode not using the user set path environmental changes if startet via the windows GUI.

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

2 participants