Node configuration.
Update NPM version with the following command
npm update -g npm
Download NVM (Node Version Manager), which will help you to use the correct version of NodeJS
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
In order to activate the NVM install, run the following command:
. ~/.nvm/nvm.sh
To use the project specific NodeJS version, you need to have nvm installed and then run the following from the root directory of our project.
nvm install && nvm use
If you get permission errors, try this, which will correct permission errors:
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
Piecing things together (for anyone interested):
nvm install && nvm use
(run from the appropriate root folder) automatically detects and set the correct NodeJS version from thepackage.json
file (seen here).Otherwise you can use these commands to set the version used for the alumni webapp: