npm install -g npm@latest code example Example: npm -g %userprofile%\AppData\Roaming\npm\node_modules