SB 3.2 Syntax error installing cordova on Ubuntu 22.04

Found an issue in SpiderBasic ? Please report it here !
User avatar
RBart
Posts: 15
Joined: Fri Jul 25, 2025 9:13 am
Location: Belgium

SB 3.2 Syntax error installing cordova on Ubuntu 22.04

Post by RBart »

Hi,

Trying to install cordova from spiderbasic. It gave syntax error at the end while creating a dummy app?

Can I ignore this? Or will this setup not succeed?

node: v12.22.9
npm: 8.5.1
java -version:
openjdk version "17.0.18" 2026-01-20
OpenJDK Runtime Environment (build 17.0.18+8-Ubuntu-122.04.1)
OpenJDK 64-Bit Server VM (build 17.0.18+8-Ubuntu-122.04.1, mixed mode, sharing)

on Ubuntu 22.04.5 LTS 64 bit
Gnome 42.9
Wayland

Code: Select all

rudi@Slimbook:~/Apps/spiderbasic$ bash install-cordova.sh

Welcome to SpiderBasic Android app install check script.
To exit the script at anytime, type CTRL+C.

Using /home/rudi/Apps/spiderbasic path as SPIDERBASIC_HOME.

* NPM is already installed...

Installing cordova, please enter your sudo password if needed (you need to be online):
* Gradle is already installed...

* Android commandline tools already installed...

Installing Android SDK 35... (be sure to have java 17 installed, package should be 'openjdk-17-jre')
[=======================================] 100% Unzipping... platform-tools/sqlit

Android SDK installation finished.

Creating dummy app to validate Cordova installation
/usr/local/lib/node_modules/cordova/node_modules/nopt/lib/nopt-lib.js:68
  const StringType = typeDefs.String?.type
                                     ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:85:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/nopt/lib/nopt.js:1:13)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
💻 Exploring the world of SpiderBasic :o