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

Installing nightly changed the stable alias?? #39

Open
cswl opened this issue Nov 22, 2017 · 2 comments
Open

Installing nightly changed the stable alias?? #39

cswl opened this issue Nov 22, 2017 · 2 comments

Comments

@cswl
Copy link

cswl commented Nov 22, 2017

nvm  list
         v8.6.0
         v9.2.0
-> v10.0.0-nightly20171121a95d88c881
default -> node (-> v10.0.0-nightly20171121a95d88c881)
nightly -> v10.0.0-nightly20171121a95d88c881
node -> stable (-> v10.0.0-nightly20171121a95d88c881) (default)
stable -> 10.0 (-> v10.0.0-nightly20171121a95d88c881) (default)

Is this expected behavior, doesn't seem like it.

@lukechilds
Copy link
Owner

Thanks for reporting, it's not the intended behaviour but installing nightly|rc builds is kind of a hack and as such leaving those versions installed my result in strange behaviour.

From the readme:

Note: This is a bit of a hack and leaving rc|nightly versions installed may break nvm when it eventually supports them itself. It's recommended that you don't leave the these versions of Node.js installed. Install them, test/play with them and then uninstall them when you're done.

If you want to submit a PR that fixes this behaviour I'd happily accept it!

@cswl
Copy link
Author

cswl commented Nov 22, 2017

As I see the problem is we install the nightly as nvm install node .
I can think of workaround to is to first parse index.json and instead calling
nvm install v10.0.0-nighlty*

Since we now install it as an absolute version instead of node nvm will not update the stable and node alias.
With this approach, nightly just acts like user-defined alias.. and the version just like any regular version.

I will start working on it..

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