From DreamFactory
Jump to: navigation, search
  1. Get required software from Apt
    • $ sudo apt-get install build-essential openssl libssl-dev pkg-config
  2. Get the latest stable Node source (version 7.1.0 as of 11/2016)
    • $ wget
  3. Extract the package
    • $ tar -zxf node-v7.1.0.tar.gz
  4. Compile and build the source
    • $ cd node-v7.1.0
    • $ ./configure
    • $ make
    • $ sudo make install
  • After successfully installing Node.js you will be able to use Node.js for scripting and NPM to install additional modules.
  • Edit the .env file uncommenting the DF_NODEJS_PATH by removing the two hash signs (##) preceding the path.

Note: By default the path is /usr/local/bin. If you installed elsewhere in another directory now is the time to specify the relevant path.

  • Save your changes and restart Apache.