Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vms:webdev:node [2017/06/17 18:34] admin [Upgrade NPM to the Last Version] |
vms:webdev:node [2017/09/07 18:16] (current) admin [Run the Install Script] |
||
---|---|---|---|
Line 3: | Line 3: | ||
As always, we'll start from a [[:vms:debian|Debian template]].\\ | As always, we'll start from a [[:vms:debian|Debian template]].\\ | ||
We'll refer to [[http://yoember.com/nodejs/the-best-way-to-install-node-js/|this article]], stating it's the best way to install Node.js ! | We'll refer to [[http://yoember.com/nodejs/the-best-way-to-install-node-js/|this article]], stating it's the best way to install Node.js ! | ||
+ | |||
+ | ===== Create User ===== | ||
+ | |||
+ | We'll first create a ''dev'' user that is going to be part of the ''sudoers'' group ([[https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart|DigitalOcean reference]]). | ||
+ | |||
+ | <Code> | ||
+ | > adduser dev | ||
+ | ... | ||
+ | Enter new UNIX password: | ||
+ | Retype new UNIX password: | ||
+ | ... | ||
+ | > usermod -aG sudo dev | ||
+ | </Code> | ||
+ | |||
===== Install NVM (Node Version Manager) ===== | ===== Install NVM (Node Version Manager) ===== | ||
+ | **NOTE:** the following commands will be executed as ''dev'' user. | ||
==== Run the Install Script ==== | ==== Run the Install Script ==== | ||
Line 11: | Line 26: | ||
<Code> | <Code> | ||
- | > wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash | + | > wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash |
=> Downloading nvm as script to '/root/.nvm' | => Downloading nvm as script to '/root/.nvm' | ||