Skip to content

Instantly share code, notes, and snippets.

@mixmix
Last active November 21, 2016 22:49
Show Gist options
  • Save mixmix/69db0e42b0a6445f3ccfd84bc29d9890 to your computer and use it in GitHub Desktop.
Save mixmix/69db0e42b0a6445f3ccfd84bc29d9890 to your computer and use it in GitHub Desktop.
node dev env

linux

install basic tools. In terminal :

sudo apt-get update
sudo apt-get install curl git zsh build-essential

linux + osx

zsh

Install oh-my-zsh. In terminal :

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

ref : https://github.com/robbyrussell/oh-my-zsh

NVM

Install nvm. In terminal :

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

ref : https://github.com/robbyrussell/oh-my-zsh

  • (edge case) - you might need to copy nvm code from .bashrc to .zshrc
  • you need to open a new terminal window for nvm to work
nvm install 6
nvm ls
nvm alias default 6
nvm ls

text editor

go get atom or sublime In linux when you download the .deb file, make sure you open your downloads folder and double click on in (otherwise your browser by default will just unzip the file)

misc config

set your git default git config:

git config --global user.name "John Doe"
git config --global user.email [email protected]
git config --global core.editor atom

set your npm to be a bit more lax about how often it asks the registry for up to date versions etc

npm config set cache-min 99999

(this is about 12 days) NOTE if you need to over-ride this you can set it back to the default (10) or run npm install ... --cache-min 0 see https://docs.npmjs.com/misc/config#cache-min

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