Skip to content

Instantly share code, notes, and snippets.

@kangashley
Last active July 24, 2019 20:53
Show Gist options
  • Save kangashley/d2de58604f3cd81e7d85d6d9103198a5 to your computer and use it in GitHub Desktop.
Save kangashley/d2de58604f3cd81e7d85d6d9103198a5 to your computer and use it in GitHub Desktop.
GSOC × p5.js / Week of May 27

How I set up the p5.js website locally

Updating Node.js

  1. Check Node version: node -v
  2. Install nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
  3. Update to current Node version (v10.16.0): nvm install 10.16.0
  4. Check npm version: npm -v
  5. Update to npm v6.9.0: npm update -g npm

Forking and cloning p5.js-website repo

  1. Clone repo: git clone https://github.com/kangashley/p5.js-website.git
  2. Navigate to repo: cd ~/Desktop/p5.js-website
  3. Install packages (including Grunt): npm install
  4. Switch to current Node version: nvm use 10.16.0
  5. Run site at http://localhost:9000: npm run watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment