Redirecting to http://loopback.io/doc/en/lb2/Installing-on-MacOS.html ...
Set directory permissions
To install Node and StrongLoop, you need to have permission to write to the following directories:
Although you can work around this by using
sudo, in general, it's not a good idea. Rather, best practice is to explicitly set directory ownership and privileges explicitly as follows:
These commands make your user account the owner of the
/usr/local/lib/node_modules directories. Then you won't have to use
sudo to install Node or install packages globally with
npm. For more information, see How to Node.
If you haven't already installed Node, download the native installer from nodejs.org and run it.
Follow these steps:
- Open a Terminal window.
Enter this command:
If you run into any problems, see Installation troubleshooting.