On ubuntu 20.04, installed npm and nodejs using apt.
Got these warnings during install.
/usr/local/bin/obj2gltf -> /usr/local/lib/node_modules/obj2gltf/bin/obj2gltf.js
> protobufjs@7.2.0 postinstall /usr/local/lib/node_modules/obj2gltf/node_modules/protobufjs
> node scripts/postinstall
npm WARN notsup Unsupported engine for obj2gltf@3.1.5: wanted: {"node":">=12.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: obj2gltf@3.1.5
npm WARN notsup Unsupported engine for fs-extra@10.1.0: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: fs-extra@10.1.0
npm WARN notsup Unsupported engine for pngjs@6.0.0: wanted: {"node":">=12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: pngjs@6.0.0
npm WARN notsup Unsupported engine for yargs@17.6.2: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: yargs@17.6.2
npm WARN notsup Unsupported engine for cesium@1.101.0: wanted: {"node":">=14.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: cesium@1.101.0
npm WARN notsup Unsupported engine for @cesium/engine@1.1.0: wanted: {"node":">=14.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @cesium/engine@1.1.0
npm WARN notsup Unsupported engine for @cesium/widgets@1.1.0: wanted: {"node":">=14.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @cesium/widgets@1.1.0
npm WARN notsup Unsupported engine for protobufjs@7.2.0: wanted: {"node":">=12.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: protobufjs@7.2.0
npm WARN notsup Unsupported engine for cliui@8.0.1: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: cliui@8.0.1
npm WARN notsup Unsupported engine for yargs-parser@21.1.1: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: yargs-parser@21.1.1
+ obj2gltf@3.1.5
added 62 packages from 103 contributors in 10.721s
Then got this error whenever running.
/usr/local/lib/node_modules/obj2gltf/node_modules/cesium/Build/CesiumUnminified/index.cjs:129186
const statistics2 = content?.tileset.metadataExtension?.statistics;
^
SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/obj2gltf/node_modules/cesium/index.cjs:13:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
On ubuntu 20.04, installed npm and nodejs using apt. Got these warnings during install.
Then got this error whenever running.