Open MrVenomous1 opened 1 year ago
When conducting the install OpenCTI 5.6.1 on an Ubuntu 20.04, I get an entirely different error:
`internal/modules/cjs/loader.js:638 throw err; ^
Error: Cannot find module 'worker_threads'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at /root/opencti/.yarn/releases/yarn-3.2.0.cjs:427:2642
at Object.
Can you check if you have the latest version of nodejs installed?
Description
I'm trying to conduct a fresh install of OpenCTI. I have been getting an error regarding an unexpected token when performing the
yarn build
. It seems to beresulting from the node_modules/graphhql-request/build/cjs/index.js file.Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
yarn install
yarn build
Expected Output
Working correctly
Actual Output
`home/xxxxx/cti/opencti/node_modules/graphql-request/build/cjs/index.js:112 jsonSerializer: fetchOptions.jsonSerializer ?? defaultJsonSerializer_js_1.defaultJsonSerializer, ^
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:74:18) at Object. (/home/xxxxx/cti/opencti/node_modules/@graphql-tools/prisma-loader/cjs/prisma-yml/Cluster.js:8:27)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
`
Additional information
Screenshots (optional)