SlideShare a Scribd company logo
Setup Node and
npm
Rick Chang
Install Node for
Development
Mac OS X with Homebrew
brew search node
brew install node
Ubuntu from package manager
sudo apt-get install nodejs npm
CentOS from package manager
yum install nodejs npm
Install Node for
Development
Node.js on Microsoft Windows with Chocolatey Gallery[1]
Powershell and .NET framework 4.0 in Windows machine
Install Chocolatey Gallery
@powershell -NoProfile -ExecutionPolicy unrestricted -Command
"iex ((new-object net.webclient).DownloadString('https://
chocolatey.org/install.ps1'))" && SET PATH=%PATH%;
%ALLUSERSPROFILE%chocolateybin
Install Node.js and NPM
choco install nodejs.install
Node commands
Check node version
node --version
Check Google V8 and OpenSSL version
node -e "console.log(process.versions)"
!
Node Version Manager
Mac OS X, Linux-based OS
nvm
Microsoft Windows
nodist
nvm
Setup nvm
npm install -g nvm
Install node version
npm install 0.10.29
Use the specific node version
npm use 0.10.29
Disable node version
npm deactivate
nodist
Setup nodist
cinst nodist -Pre
Install node version[2][3]
nodist add 0.10.29
Use the specific node version
nodist 0.10.29
Node Package Manager
Install package in global scope
npm install -g express
Install package in local scope
npm install underscore
Start Node in system
startup
forever package
Install forever
npm install -g forever
Reference
[1]Chocolatey Gallery, http://
chocolatey.org/
[2]Nodist – Node version manager for
Windows, http://thechangelog.com/nodist-
node-version-manager-for-windows/
[3]nodist, https://github.com/marcelklehr/
nodist#readme

More Related Content

PDF
Ch2.setup.node.and.npm
PDF
Node.js Lab
PDF
Install Nagios Core On CentOS 7
PDF
STM32 개발 환경 셋팅
PPT
Ferrara Linux Day 2011
PDF
Setup a New Virtualenv for Django in Windows
PPTX
Redis fundamental
Ch2.setup.node.and.npm
Node.js Lab
Install Nagios Core On CentOS 7
STM32 개발 환경 셋팅
Ferrara Linux Day 2011
Setup a New Virtualenv for Django in Windows
Redis fundamental

What's hot (20)

PPTX
Modern Development Tools
PDF
Nightwatch.js (vodQA Shots - Pune 2017)
PDF
Helpful pre commit hooks for Python and Django
PDF
Speed up your development environment PHP + Nginx + Fedora + PG
ODP
How to access your FIWARE Lab Instance.
DOCX
Install Cuckoo on Mac OS X
PPTX
How to make a WoW server Warlords of Draenor
PPTX
Neo4j python
PDF
5 min docker
PPTX
Improving WordPress Theme Development Workflow - Naveen Kharwar.
PPTX
Docker session I: Continuous integration, delivery and deployment
PDF
2016/11/05: OSWDem16 workshop
PDF
Vagrant勉強会 チュートリアル編
PDF
Getting up and running with Docker
PPTX
DOCX
Run Docker On Windows Using Vagrant
PDF
Deep dive-oz
PPTX
Report introduction to_npm_gulp_bower
PDF
Rails Plugins 2 Hoe
ODP
OpenDaylight go
Modern Development Tools
Nightwatch.js (vodQA Shots - Pune 2017)
Helpful pre commit hooks for Python and Django
Speed up your development environment PHP + Nginx + Fedora + PG
How to access your FIWARE Lab Instance.
Install Cuckoo on Mac OS X
How to make a WoW server Warlords of Draenor
Neo4j python
5 min docker
Improving WordPress Theme Development Workflow - Naveen Kharwar.
Docker session I: Continuous integration, delivery and deployment
2016/11/05: OSWDem16 workshop
Vagrant勉強会 チュートリアル編
Getting up and running with Docker
Run Docker On Windows Using Vagrant
Deep dive-oz
Report introduction to_npm_gulp_bower
Rails Plugins 2 Hoe
OpenDaylight go
Ad

Similar to Node Web Development 2nd Edition: Chapter2 Setup Node and NPM (20)

PPTX
React native on windows
PPTX
Solidity intro
PPTX
Node js training (1)
PDF
How to Install Node.js and NPM on Windows and Mac?
PDF
Building a cloud ready linux image locally using KVM
PDF
Lezione 02 React and React Native installation and Configuration
PPTX
PhoneGap Day 2016 EU: Creating the Ideal Cordova Dev Environment
PDF
OSDC.no 2015 introduction to node.js workshop
PPTX
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
PPTX
Node.js/io.js Native C++ Addons
ODP
Node js presentation
DOCX
.Net framework 4.5 on raspberry pi
DOCX
.Net framework 4.5 on raspberry pi
DOCX
rgpv 7th sem for it & cs Cloud computing lab record
PPTX
Introduction to node.js By Ahmed Assaf
PPT
Nodejs quick start
PPTX
3 Things Everyone Knows About Node JS That You Don't
PDF
Chocolatey - making the process of installing software on windows easy as pie
PDF
Modernizing .NET Apps
React native on windows
Solidity intro
Node js training (1)
How to Install Node.js and NPM on Windows and Mac?
Building a cloud ready linux image locally using KVM
Lezione 02 React and React Native installation and Configuration
PhoneGap Day 2016 EU: Creating the Ideal Cordova Dev Environment
OSDC.no 2015 introduction to node.js workshop
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Node.js/io.js Native C++ Addons
Node js presentation
.Net framework 4.5 on raspberry pi
.Net framework 4.5 on raspberry pi
rgpv 7th sem for it & cs Cloud computing lab record
Introduction to node.js By Ahmed Assaf
Nodejs quick start
3 Things Everyone Knows About Node JS That You Don't
Chocolatey - making the process of installing software on windows easy as pie
Modernizing .NET Apps
Ad

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Cloud computing and distributed systems.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Electronic commerce courselecture one. Pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Review of recent advances in non-invasive hemoglobin estimation
Machine learning based COVID-19 study performance prediction
Network Security Unit 5.pdf for BCA BBA.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Empathic Computing: Creating Shared Understanding
Understanding_Digital_Forensics_Presentation.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
cuic standard and advanced reporting.pdf
Spectral efficient network and resource selection model in 5G networks
MYSQL Presentation for SQL database connectivity
Cloud computing and distributed systems.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MIND Revenue Release Quarter 2 2025 Press Release
Electronic commerce courselecture one. Pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Review of recent advances in non-invasive hemoglobin estimation

Node Web Development 2nd Edition: Chapter2 Setup Node and NPM

  • 2. Install Node for Development Mac OS X with Homebrew brew search node brew install node Ubuntu from package manager sudo apt-get install nodejs npm CentOS from package manager yum install nodejs npm
  • 3. Install Node for Development Node.js on Microsoft Windows with Chocolatey Gallery[1] Powershell and .NET framework 4.0 in Windows machine Install Chocolatey Gallery @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https:// chocolatey.org/install.ps1'))" && SET PATH=%PATH%; %ALLUSERSPROFILE%chocolateybin Install Node.js and NPM choco install nodejs.install
  • 4. Node commands Check node version node --version Check Google V8 and OpenSSL version node -e "console.log(process.versions)" !
  • 5. Node Version Manager Mac OS X, Linux-based OS nvm Microsoft Windows nodist
  • 6. nvm Setup nvm npm install -g nvm Install node version npm install 0.10.29 Use the specific node version npm use 0.10.29 Disable node version npm deactivate
  • 7. nodist Setup nodist cinst nodist -Pre Install node version[2][3] nodist add 0.10.29 Use the specific node version nodist 0.10.29
  • 8. Node Package Manager Install package in global scope npm install -g express Install package in local scope npm install underscore
  • 9. Start Node in system startup forever package Install forever npm install -g forever
  • 10. Reference [1]Chocolatey Gallery, http:// chocolatey.org/ [2]Nodist – Node version manager for Windows, http://thechangelog.com/nodist- node-version-manager-for-windows/ [3]nodist, https://github.com/marcelklehr/ nodist#readme