This documentation is deprecated
Please see the new LoopBack documentation site.
Skip to end of metadata
Go to start of metadata

Redirecting to ...


Compiler tools

If you want features such as application profiling or monitoring, you may need to install compiler tools before you start.  See Installing compiler tools for more information.

Set directory permissions


Changing privileges like this is appropriate only on your local development system. Never do this on a production or public-facing server system.

To install Node and StrongLoop, you need to have permission to write to the following directories:

  • /usr/local/bin 
  • /usr/local/lib/node_modules

If these directories do not exist, you will need to create them.

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/bin  and /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.

Install Node.js

If you haven't already installed Node, download the native installer from and run it.


For best results, use the latest LTS (long-term support) release of Node.js.

Install StrongLoop

Follow these steps:

  1. Open a Terminal window.
  2. Enter this command:

    If you didn't set your file and directory privileges as instructed above, use this command (not recommended):


    During installation, you may see a number of errors from node-gyp if you don't have compiler tools installed. These errors only prevent you from performing certain monitoring and management functions such as CPU profiling and Heap memory profiling with slc; If you need those functions, then install compiler tools before continuing. Otherwise, you can ignore the errors for now.

If you run into any problems, see Installation troubleshooting.

  • No labels