shajin-sha / WebOs

WebOs ,online operating system
3 stars 0 forks source link

Running? #1

Open GikitSRC opened 1 year ago

GikitSRC commented 1 year ago

How do I run WebOS?

shajin-sha commented 1 year ago

You can clone and run npm install, on both frontend side and backend side

make sure node is installed. 👍🏻

GikitSRC commented 1 year ago

Ok, Thank you!

GikitSRC commented 1 year ago

May I ask what is the run command? node . and npm run/npm run dev does not work.

GikitSRC commented 1 year ago

It says `Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10) at module.exports (/home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/NormalModule.js:417:16) at handleParseError (/home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/NormalModule.js:471:10) at /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/NormalModule.js:503:5 at /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/NormalModule.js:358:12 at /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/loader-runner/lib/LoaderRunner.js:373:3 at iterateNormalLoaders (/home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/loader-runner/lib/LoaderRunner.js:214:10) at iterateNormalLoaders (/home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/loader-runner/lib/LoaderRunner.js:221:10) /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/react-scripts/scripts/start.js:19 throw err; ^

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10) at module.exports (/home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/util/createHash.js:135:53) at NormalModule._initBuildHash (/home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/NormalModule.js:417:16) at /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/NormalModule.js:452:10 at /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/webpack/lib/NormalModule.js:323:13 at /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/loader-runner/lib/LoaderRunner.js:367:11 at /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/loader-runner/lib/LoaderRunner.js:233:18 at context.callback (/home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/loader-runner/lib/LoaderRunner.js:111:13) at /home/arthurj/Downloads/WebOS/fontend/web-os/node_modules/babel-loader/lib/index.js:59:103 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

Node.js v18.12.1 `

shajin-sha commented 1 year ago

npm start

GikitSRC commented 1 year ago

It's now running, but grabbing an account is broken. Any way to fix it? When I enter the info the "Grab Account" button does not work.

GikitSRC commented 1 year ago

I fixed it, It turns out the Node_Modules in backend is faulty. But now a new problem;

    at Timeout._onTimeout (/home/arthurj/Downloads/WebOs/backend/node_modules/mongodb/lib/sdam/topology.js:310:38)
    at listOnTimeout (node:internal/timers:564:17)
    at process.processTimers (node:internal/timers:507:7) {
  reason: TopologyDescription {
    type: 'Unknown',
    servers: Map(1) { 'localhost:27017' => [ServerDescription] },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    logicalSessionTimeoutMinutes: undefined
  }
}

Can you tell me how to fix this?

shajin-sha commented 1 year ago

No idea, maybe the node version is the issues.

GikitSRC commented 1 year ago

What node version is it supposed to be?