Discussions
Categories
- 197.1K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.7K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 555 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 468 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Unable to install ojet on oracle free tier vm

Have installed node, and it is working perfectly fine (have setup ingress rule etc)
# node --version
v6.17.1
then using following command, i am installing ojet
# npm install -g @oracle/ojet-cli
/usr/bin/ojet -> /usr/lib/node_modules/@oracle/ojet-cli/bin/ojet
/usr/lib
└─┬ @oracle/[email protected]
├─┬ @oracle/[email protected]
...
├── [email protected]1.2.5
However, i get an error on executing the command below:
# ojet help
: No such file or directory
# which ojet
/bin/ojet
ls -ltr /bin/ojet
lrwxrwxrwx. 1 root root 45 Aug 10 19:00 /bin/ojet -> ../lib/node_modules/@oracle/ojet-cli/bin/ojet
but ../lib/node_modules/@oracle/ojet-cli/bin/ojet is empty.
Please help on how to install it correctly.
Thanks,
Hrishi
Best Answers
-
JET requires Node.js v12 or higher. Node v6 is extremely old and something I would not be using because of known security issues over the years.
Please update that Nodejs version and give it another try.
-
Hi Hrishi,
I went into my own free tier account and setup a VM to see how it could be done.
I followed this page for getting the latest Nodejs install working. Node.js Packages for Oracle Linux | Integrated Cloud. Applications & Platform Services.
Then I used this page Free Tier: Install Node Express on an Oracle Linux Instance to setup the VM access (Ingress) and turning on the firewall for the VM itself. I didn't bother doing the full Express application set, since JET actually uses Express when you do the ojet serve command.
The one thing that I did change in all of the above, was instead of using port 3000, I setup port 8000. By doing this, I can now run the CLI command
ojet serve --server-only --no-livereload
and then hit the public IP address for my VM to see the JET app running.
Answers
-
JET requires Node.js v12 or higher. Node v6 is extremely old and something I would not be using because of known security issues over the years.
Please update that Nodejs version and give it another try.
-
Since this is a Linux OS, you will need to use sudo when you try to install the ojet cli as a global npm package a well.
sudo npm i -g @oracle/ojet-cli
-
Thanks a lot JB for the response.
looks like there was some issue w.r.t. vm. i recreated a new VM. using sudo su ..performed yum update.
Installed:
kernel-uek.x86_64 0:5.4.17-2102.204.4.2.el7uek kernel-uek-devel.x86_64 0:5.4.17-2102.204.4.2.el7uek
Updated:
cloud-init.x86_64 0:19.4-7.0.3.el7_9.5 microcode_ctl.x86_64 2:2.1-73.11.0.1.el7_9 nfs-utils.x86_64 1:1.3.0-0.68.0.1.el7.1
python36-oci-cli.noarch 0:3.0.0-1.el7 python36-oci-sdk.x86_64 0:2.43.2-1.el7 uptrack.noarch 0:1.2.75-0.el7
Complete!
[[email protected] opc]# sudo firewall-cmd --permanent --add-port=3000/tcp
success
[[email protected] opc]# sudo firewall-cmd --permanent --add-port=8000/tcp
success
[[email protected] opc]# sudo firewall-cmd --reload
success
However, while installing node; now i am getting error as :
# sudo yum install -y nodejs
Loaded plugins: langpacks, ulninfo
No package nodejs available.
Error: Nothing to do
looks like nodejs installation itself is having trouble.
is it a problem with Oracle free tier image? could this be data center specific problem? ( i am working on mumbai OCI region)
Thanks,
Hrishi
-
Hi Hrishi,
I went into my own free tier account and setup a VM to see how it could be done.
I followed this page for getting the latest Nodejs install working. Node.js Packages for Oracle Linux | Integrated Cloud. Applications & Platform Services.
Then I used this page Free Tier: Install Node Express on an Oracle Linux Instance to setup the VM access (Ingress) and turning on the firewall for the VM itself. I didn't bother doing the full Express application set, since JET actually uses Express when you do the ojet serve command.
The one thing that I did change in all of the above, was instead of using port 3000, I setup port 8000. By doing this, I can now run the CLI command
ojet serve --server-only --no-livereload
and then hit the public IP address for my VM to see the JET app running.