Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Installing Node.js As a Source Dependency

 

You can install Node.js as a web application framework to replace the Flask framework that is included with the JSA GUI Application Framework SDK.

  1. Download the Node.js archive (.tar) that you want to use, and copy it to app/src_deps/init directory.
  2. Create an installation script that is similar to the following example in the same folder that references the archive node-v6.3.0-linux-x64.tar.gz that you want to use (in this case):

    #!/bin/bash ## ## install node and npm from source tarball, and make available on the path ## cd /usr/local tar --strip-components 1 -xzf /src_deps/init/node-v6.3.0-linux-x64.tar.gz

  3. Create a file ordering.txt in the same folder as the following content:

    /src_deps/init/install_nodejs_npm.sh

    The ordering.txt notifies JSA to run the Node.js installation script.