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

FIX Ensure nvmdir exists #42

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Sep 27, 2024

Follow-up to #41

Fixes https://github.com/silverstripe/silverstripe-versioned-admin/actions/runs/11042923925/job/30738441066

You have $NVM_DIR set to "/home/runner/.nvm", but that directory does not exist. Check your profile files and environment.

Not sure why the dir existed when I tested the previous PR (looks like nvm is pre-installed for creative-commoners for some reason??). But tested this PR separately and it clearly indicates that it created the dir this time and worked as expected thereafter: https://github.com/silverstripe/silverstripe-lumberjack/actions/runs/11063333839/job/30739509770

Also need to source it with --no-use to avoid an exit 3 that seems to happen if you source nvm while in a directory with a .nvmrc when the version of npm in that .nvmrc file hasn't been installed yet.

Why did this all start breaking suddenly?

Turns out nvm was always pre-installed with ubuntu 22, but isn't with ubuntu 24. We thought we were installing it from scratch, but we were just updating it.

Issue

@emteknetnz emteknetnz merged commit a08a8c0 into silverstripe:1.2 Sep 29, 2024
2 checks passed
@emteknetnz emteknetnz deleted the pulls/1.2/nvm-dir branch September 29, 2024 23:21
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 this pull request may close these issues.

2 participants