Show TOC

Installing the Node.js-Based Development EnvironmentLocate this document in the navigation structure

Installation steps for Node.js

  1. Download Node.js from http://nodejs.orgInformation published on non-SAP site and install it.
    Note

    The installation includes the Node Package Manager (npm).

  2. Set the environment variables in the operating system settings or in the command line. You need to do this if you are working behind an HTTP proxy:
    @SET HTTP_PROXY=http://proxy:8080
    @SET HTTPS_PROXY=http://proxy:8080
    @SET FTP_PROXY=http://proxy:8080
    @SET NO_PROXY=localhost,127.0.0.1,.mycompany.corp
    Note

    The example shown above is for the Windows command line. You may have to adapt the settings according to your specific proxy configuration.

  3. Install the Grunt command line interface (grunt-cli) globally with the following command: npm install grunt-cli -g.

  4. Download and install Git from http://git-scm.com/downloadInformation published on non-SAP site.

  5. Clone the Git repository with the following command git clone https://github.com/SAP/openui5.git.

  6. Install all npm dependencies locally. Execute the commands inside the openui5 directory as show below:
    cd openui5
    npm install
  7. Start the server: with grunt serve.

    Note

    grunt serve has various configuration options you can use. For example, you can specify the parameter --port=9090 to use a different HTTP port.

  8. Point your browser to the following server where SAPUI5 is running: http://localhost:8080/testsuite/.