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

Redirecting to http://loopback.io/doc/en/lb2/Installing-on-Linux.html ...

Icon

Follow these instructions to install StrongLoop for development.  To install a production system, see Setting up a production host.

Prerequisites

Install compiler tools.

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

Icon

Many Linux distributions come with the necessary tools. See Installing compiler tools for detailed requirements.

Set directory privileges

Icon

Changing privileges like this is appropriate only on your local development system. Never do this on a server system.

To install Node and StrongLoop , you need permissions to write to directories:

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

If you see errors such as:

Then you don't have the required rights to create files or directories.  Either change the rights for the specified directories, or run the command using sudo.  In general, it's better to fix the directory rights as follows:

This command makes your user account the owner of the /usr/local directory. Then you won't ever have to use sudo to install Node or install packages globally with npm. For more information, see How to Node.

Icon

DO NOT use the above chown command on the /usr/bin directory. Doing so can severely misconfigure your system.

If you have to use sudo, use the following command:

 

Install Node.js

Follow the instructions in Installing Node.js via package manager.  See also NodeSource Node.js and io.js Binary Distributions.

Icon

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, you may need to use this command (not recommended):

    Icon

    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.

Errors on Ubuntu

You may see the following errors when installing on Ubuntu:

To fix this, enter the following command:

 

  • No labels