🌱 NVM
You need to have many versions of node and npm on your machine. Each project is different.
Don’t be that person who says it works on my machine.
Use nvm (version managing).
Install nvm
curl https://raw.githubusercontent.com/creationix/nvm/v0.10.0/install.sh | bash
Install version of node
nvm install 0.10
switch version node
nvm use 0.10
Set default version of node for nvm
nvm alias default 0.10
Save the version so other can use the same
touch .nvmrc
add the node version to the .nvmrc file and commit it to your repo
now you can nvm use
and your shell will switch to the correct repo (assumes you have nvm installed)
NPM
Install and record package
npm install --save NAME_OF_PACKAGE