udevbe / greenfield

HTML5 Wayland compositor :seedling:
GNU Affero General Public License v3.0
918 stars 28 forks source link

You need sudo for npm install -g #9

Closed frink closed 5 years ago

frink commented 5 years ago

Just a quick edit.

Zubnix commented 5 years ago

This actually depends on your nodejs installation. In general it's not recommended to use sudo to install global npm packages, however a lot of distros configure it this way. Even the official npm docs have a guid arround it: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

Perhaps it would be better to provide a quick explanation with a link on how to work around access errors.