npmjs installation macOS Upgrade itself $ npm install -g npm Ubuntu Upgrade itself $ sudo npm update -g npm See also npmjs