NVM NPM NODE - TwoGears/hakomo-guides GitHub Wiki

Before you begin

There are many ways to do it, but this is the right one: NVM>NPM>Node

NVM

Do not use installation file. Install from the following link but make sure you have no NVM settings in your .bash_profile. Then, user the following command:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

More information here: https://github.com/creationix/nvm

Check if nvm is installed by opening a new window (or sourcing .bash_profile) and then using command -v nvm as other things like which won't work.

Node

Check the latest node here: https://nodejs.org/en/ and install the latest stable like so:

nvm install v10.15.3

To verify what versions you have, type nvm ls

NPM

Already comes with Node.js

Just type which npm to verify you have it.