Skip to content

Instantly share code, notes, and snippets.

@deepak
Last active July 8, 2016 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepak/a5022101addeb044cd2398056dec1077 to your computer and use it in GitHub Desktop.
Save deepak/a5022101addeb044cd2398056dec1077 to your computer and use it in GitHub Desktop.
how i start with node
## Install [node](http://nodejs.org) via [homebrew](http://brew.sh) and update [npm](https://www.npmjs.com)
# install node version with LTS (Long Term Support)
brew install node4-lts
# update npm
npm install npm -g
# check versions
node -v
npm -v
# test that it is alive
node -e "console.log('hello')"
# use npm for finding stable and beta versions
npm view webpack dist-tags
npm view webpack versions
# create a npm project
mkdir some-project-name
git init
npm init # or use git init -y
# install packages
npm i webpack --save-dev
# install packages from package.json
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment