Posts

Showing posts from 2017

Setting up node-sass on a mac

I followed the installation instructions for node-sass but it would not run from the terminal. The message was something like 'command not found'. Eventually I worked out that I needed to add  /Users/my_user_name/node_modules/node-sass/bin to the path. To do that see my post on setting the path on macs .

Path environmental variable on mac

To view your paths in terminal type: $ echo $PATH To add a path for the duration of this terminal session type: $ export PATH=$PATH:/my/new/path Note: the $PATH: is important as it adds the new path to your existing one. Without $PATH: the existing path is overwritten with the new one. The disadvantage with this approach is that you modification to the path is lost when the terminal session ends. To add to the path for all users permanently you need to edit the paths file in /etc.  In terminal navigate to /etc. Type $ sudo pico paths Add your path. Type ^x (note: ^ = ctrl key). You'll be prompted to save. Type Y . To view your paths using echo $PATH you'll need to reopen the terminal to see your changes.