Don't you have Node JS installed? First install it.
On Ubuntu
sudo apt-get install -y nodejs
sudo npm install n -g
sudo n 11.8.0 # Current stable
sudo ln -sf /usr/local/bin/node /usr/bin/node
sudo apt-get purge -y nodejs
node -v && npm -v
On OSX
brew install nodejs
npm install n -g
n 11.8.0 # Current stable
sudo ln -sf /usr/local/bin/node /usr/bin/node
brew uninstall nodejs
node -v && npm -v
The output will be like:
v11.8.0
6.5.0
git clone https://github.com/shunsukehondo/token-dapps-tutorial.git
cd token-dapps-tutorial
npm install
npm start
- Open token-dapps-tutorial folder with VSCode
- Install following extensions
- Prettier
- TSLint
- Vetur
- Open User Settings (
cmd+,
on Mac) and overwrite it with the follows.
{
"[typescript]": {
"editor.formatOnSave": true
},
"[vue]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.formatOnSave": true
}
}