srikrishnacj
10/17/2019 - 5:14 AM

Nodejs #linux

Nodejs #linux

# Install node
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install nodejs

# Verify nodejs
node --version
npm --version

# Configure global dir
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo "export PATH=~/.npm-global/bin:$PATH" >> ~/.profile