Created
December 19, 2019 15:34
-
-
Save haferman/4f46940c545aa950e2d75314a7e3abe5 to your computer and use it in GitHub Desktop.
celo: celocli install for fresh Ubuntu 18.04 server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install nodejs and dependencies | |
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash | |
sudo apt -y install gcc g++ make | |
sudo apt -y install nodejs | |
# install yarn | |
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install yarn | |
# check on node and npm versions (for me was 10.17.0 and 6.11.3) | |
node -v | |
npm -v | |
# install nvm | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash | |
# exit so that nvm can be found when we login | |
exit | |
# login again | |
nvm install 10 && nvm use 10 | |
# note the above installed a more recent version of nodejs, but the same version of npm | |
# now install celocli. | |
npm install -g @celo/celocli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment