4 ms·
Using sudo with npm is not required, you can configure it to store things in your user dir: echo "prefix=$HOME/.npm-packages" >> ~/.npmrc
by jgillich 11y ago
Using sudo with npm is not required, you can configure it to store things in your user dir:
echo "prefix=$HOME/.npm-packages" >> ~/.npmrc