Last active
July 8, 2016 02:39
-
-
Save deepak/a5022101addeb044cd2398056dec1077 to your computer and use it in GitHub Desktop.
how i start with node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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