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

NVM directory already exists #3

Open
kceb opened this issue Mar 23, 2020 · 4 comments
Open

NVM directory already exists #3

kceb opened this issue Mar 23, 2020 · 4 comments

Comments

@kceb
Copy link

kceb commented Mar 23, 2020

Getting the following error on macOS but not ubuntu:

fatal: destination path '/Users/runner/.nvm' already exists and is not an empty directory.

I can rm -rf that directory before the iOS step, but was wondering why it is happening suddenly. To my knowledge, we didn't cache that directory.

@kceb
Copy link
Author

kceb commented Apr 2, 2020

Looks like github added nvm to it's macOS containers.

I think to resolve this, this package could check to see if an nvm install already exists.

@ljharb
Copy link

ljharb commented Nov 9, 2020

This would probably work fine if it only set $NVM_DIR if it wasn't already set?

@dcodeIO
Copy link
Owner

dcodeIO commented Nov 10, 2020

A while ago I changed the install directory from $HOME/.nvm to $HOME/mynvm (see). Looks a bit silly, but should work around the problem by replacing any potentially existing nvm install for the course of the workflow run.

@ljharb
Copy link

ljharb commented Nov 10, 2020

Right, but i think the ideal/goal is not to install an extra nvm/node at all - ie, to reuse the existing one.

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

3 participants