Skip to content
Advertisement

Installing nvm on bash on ubunutu on windows 10 throws error

I’m testing the new bash on ubuntu on windows 10 and the first thing I tried to do is to install node. Of course, since I now have a “Linux system” I went ahead and installed nvm.

I also had to

JavaScript

One done i tried

JavaScript

but I got:

JavaScript

Do you know what’s causing this? I think that I may have something missconfigured on the make command maybe?

NOTE: installing node using the “official way” works, that is:

JavaScript

Advertisement

Answer

I think it’s an issue in the bash subsystem. There are several open issues on github.com relating to installing nvm, rbenv, rvm, as well as creating symlinks.

These two issues appear to be directly related to the problem you’re experiencing. https://github.com/Microsoft/BashOnWindows/issues/6 https://github.com/Microsoft/BashOnWindows/issues/9

Also, FYI, I have attempted to build node 4 and node 5 from source, but fail during the make command with this message:

/usr/bin/ld.gold: fatal error: /root/working/node-v5.10.1/out/Release/mksnapshot: Invalid argument collect2: error: ld returned 1 exit status

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement