install npm version 6 ubuntu code example Example: install npm ubuntu sudo apt update sudo apt install nodejs sudo apt install npm