Skip to content

Instantly share code, notes, and snippets.

@Mason-McGough
Created September 15, 2018 22:48
Show Gist options
  • Save Mason-McGough/b8964f9ef796e3db7d7d25b5af07e7de to your computer and use it in GitHub Desktop.
Save Mason-McGough/b8964f9ef796e3db7d7d25b5af07e7de to your computer and use it in GitHub Desktop.
NodeJS Tips

NodeJS Tips

Node Version Manager (nvm)

Install nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Use their instructions if possible.

Install latest stable version of Node using nvm

nvm install node

Node Package Manager (npm)

Install local packages from packages.json file

Change to same directory as packages.json file and use the following:

npm install

Start a server

Change to the directory containing your sources and use:

npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment