Se ha denunciado esta presentación.

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

1

Compartir

Próximo SlideShare
Statsd introduction
Statsd introduction
Cargando en…3
×
1 de 10
1 de 10

Más Contenido Relacionado

Audiolibros relacionados

Gratis con una prueba de 14 días de Scribd

Ver todo

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

  1. 1. Setup Node and npm Rick Chang
  2. 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. 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. 4. Node commands Check node version node --version Check Google V8 and OpenSSL version node -e "console.log(process.versions)" !
  5. 5. Node Version Manager Mac OS X, Linux-based OS nvm Microsoft Windows nodist
  6. 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. 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. 8. Node Package Manager Install package in global scope npm install -g express Install package in local scope npm install underscore
  9. 9. Start Node in system startup forever package Install forever npm install -g forever
  10. 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

×