How to Setup Node.js and Oracle JET on Oracle Linux

What if you want to develop Oracle JET in Oracle Linux? Certainly this is possible — both Node.js and Oracle JET run on Oracle Linux or any other Linux distribution. If you follow Oracle JET Setup Guide, you will see Node.js is listed as prerequisite. But it may not be exactly straightforward to install Node.js on Oracle Linux. Below I will guide you through the steps.

Run command to install development tools to build native add-ons to be installed:

yum install -y gcc-c++ make

Enable Node.js yum repository:

curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash -

Install Node.js:

sudo yum install nodejs

Verify if node and npm was installed successfully:

Next you can follow steps described in Oracle JET setup guide, all straightforward. Install Oracle JET:

sudo npm -g install @oracle/ojet-cli

Create new JET application with OJET utility:

sudo ojet create jetwinapp — template=navdrawer

Run application with OJET utility:

sudo ojet serve

JET application runs on Oracle Linux:

Originally published at andrejusb.blogspot.com on November 19, 2017.

TensorFlow Certified Developer | ML Expert | Founder https://katanaml.io and https://github.com/katanaml | Author at Manning Publications | Oracle Developer

TensorFlow Certified Developer | ML Expert | Founder https://katanaml.io and https://github.com/katanaml | Author at Manning Publications | Oracle Developer