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

[CLI] Fix logic to load nvm when calling npm commands #240

Closed
jhnstn opened this issue Jan 26, 2024 · 0 comments · Fixed by #241
Closed

[CLI] Fix logic to load nvm when calling npm commands #240

jhnstn opened this issue Jan 26, 2024 · 0 comments · Fixed by #241

Comments

@jhnstn
Copy link
Member

jhnstn commented Jan 26, 2024

The script will set up nvm on every npm call when running on CI (source).

The issue is that Go runs commands with /bin/bash by default so unless nvm is set up to run in bash, the npm calls that the script makes will not load nvm and fall back to the systems global node/npm.

Locally the fix is to make sure that nvm is set up to work with bash by adding the "nvm snippet" to ~/.bash_profile

This was referenced Jan 26, 2024
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

Successfully merging a pull request may close this issue.

1 participant