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 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.xx 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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.