- Check Node version:
node -v
- Install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
- Update to current Node version (v10.16.0):
nvm install 10.16.0
- Check npm version:
npm -v
- Update to npm v6.9.0:
npm update -g npm
Forking and cloning p5.js-website repo
- Clone repo:
git clone https://github.com/kangashley/p5.js-website.git
- Navigate to repo:
cd ~/Desktop/p5.js-website
- Install packages (including Grunt):
npm install
- Switch to current Node version:
nvm use 10.16.0
- Run site at http://localhost:9000:
npm run watch