cognitom / symbols-for-sketch

Symbol font templates for Sketch.app
680 stars 76 forks source link

Please remove the "sudo" from your Readme instructions #18

Closed hulkish closed 8 years ago

hulkish commented 9 years ago

Please remove the "sudo" as part of your instructions for installing gulp. Installing global modules globally via sudo is generally very ill-advised

cognitom commented 9 years ago

Yeah, I know. When I wrote it, sudo was needed because of the issue of the official GUI installer for Mac. But, basically I'm using nodebrew, so I don't know sudo is still needed or not. Is it solved in the current version?

hulkish commented 9 years ago

sudo has been a non issue for me at least for a while now, by way of restoring global moduoes in my home directory by using:

npm config set prefix ~/.npm

Then making sure that it's bin folder is added to my PATH environment variable, in my .bash_profile:

export $PATH=$HOME/.npm/bin:$PATH

cognitom commented 9 years ago

@hulkish thanks. Still not clear for me that users can install globally without extra steps. I think this is not a tutorial for installing Node, and many readers are DESIGNERS who don't like black screens.

Then, how about this way?


Type the command below to install gulp.

$ npm install -g gulp

If you encounter some trouble during install, try with sudo:

$ sudo npm install -g gulp