I try to install the nvm
for my node.js
. But I have to do export PYTHON=python2
.
What is this and how does it work?
I use Ubuntu 12.04 in a virtualbox. I can't get the nvm installed... more than two days this is keeping me awake... what did I do wrong?
You can install and use NVM regardless of whether you have installed Node already. NVM alters path variables to select different versions of Node, so it works with pre-existing installations. Install NVM using either curl or wget .
You need to do export PYTHON=python2
only if python3 is set by default on your system.
First check the python version by running
> python --version
> Python 2.7.3
If it shows 3.x.x then you should simply run this in this console before running installer eg.
export PYTHON=python2
then run installer
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
#or
wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
See nvm docs link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With