Search code examples
node.jsnpmwindows-subsystem-for-linuxvolta

Unable to install Volta on WSL - ELF not found


I am unable to install volta as per its recommended command curl https://get.volta.sh | bash on WSL.

I keep getting this error. And I have no idea what it means.

enter image description here


Solution

  • Found out the answer.

    Not sure why exactly, but it turns out my Ubuntu WSL was still on WSL 1, not 2. Updating it solved the problem.