This is a quick post. All you need to do is follow the commands below, then you’re all set!
In your root ~ directory, in the terminal, type the following:
to install from scracth type
npm install install
npm i -g npm to update npm
npm install -g ganache-cli
npm install -g truffle
npm install -g firstname.lastname@example.org
npm install -g solc
[Getting Started Installing Git][https://git-scm.com/book/en/v2/getting-started-installing-git]
Run in the terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
[More Brew info][https://brew.sh/]
After homebrew is installed, then run:
brew install nvm
Do not forget to follow the instructions and edit your .bashprofile to include an export link from $NVMDIR to the prescribed place. Read your terminal after installation for more instruction from Homebrew.
nvm ls-remote to list available node.js versions
nvm install v10.13.0 for the latest stable version
nvm use v10.13.0 - to designate this version for use
node -v command should return the current version of node being used is
If you use Sublime Text, download the [Ethereum linter][https://github.com/davidhq/sublimeethereum], and [EthereumSnippets][https://github.com/chevdor/ethereumsoliditysnippets/blob/master/readme.adoc] through package control.
Otherwise, google around for linters for Solidity for your own code editor.
Now, you’re all setup for your first smart contract!