Upgrade npm You can upgrade npm to the latest version with the following command: $ sudo npm -g install npm