dreddit-dapp/instructions/1 Installation.md

53 lines
1.4 KiB
Markdown
Raw Normal View History

2018-08-20 18:42:27 +00:00
# Installation
## Check your environment
Prior to installing Embark, you should have the following prerequisites on your machine:
#### NodeJS 8.10+
```
node version
> 8.10+
```
If you need to update Node, please [install `nvm`](https://github.com/creationix/nvm#installation) and install/use the LTS version. macOS/Linux commands provided for you below:
```
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install --lts
nvm use lts
```
2018-10-09 21:49:48 +00:00
#### IPFS 0.4.17+
2018-08-20 18:42:27 +00:00
```
ipfs version
2018-10-09 21:49:48 +00:00
> 0.4.17+
2018-08-20 18:42:27 +00:00
```
[IPFS installation instructions](https://ipfs.io/docs/install/#installing-from-a-prebuilt-package), macOS/Linux command provided for you below:
```
tar xvfz go-ipfs.tar.gz
cd go-ipfs
./install.sh
ipfs init
```
2018-10-09 21:49:48 +00:00
#### Go-ethereum 1.8.15+
2018-08-20 18:42:27 +00:00
```
geth version
2018-10-09 21:49:48 +00:00
> 1.8.15+
2018-08-20 18:42:27 +00:00
```
If you need to [install `geth`](https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum), you can use the below for macOS:
```
brew tap ethereum/ethereum
brew install ethereum
```
2018-10-09 21:49:48 +00:00
## Installing Embark 3.2.2
2018-08-20 18:42:27 +00:00
If you already have Embark installed, please run:
```
embark version
```
2018-10-09 21:49:48 +00:00
Make sure the version is `3.2.2`. If its not, re-install Embark by running:
2018-08-20 18:42:27 +00:00
```
npm install -g embark
```
> Do not use sudo when installing Embark
2018-10-09 21:49:48 +00:00
Re-run `embark version` to ensure we have `3.2.2`.
2018-08-20 18:42:27 +00:00
If you have not installed Embark at all, Embark can be installed by running
`npm install -g embark` (without sudo)