Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node version not specified #38

Open
ahaim5357 opened this issue Jul 7, 2023 · 1 comment
Open

Node version not specified #38

ahaim5357 opened this issue Jul 7, 2023 · 1 comment
Assignees

Comments

@ahaim5357
Copy link

ahaim5357 commented Jul 7, 2023

The repository does not contain the required node version needed to run the platform. Additionally the instructions on the Google collab seem to differ on what to do with setting up the platform compared to that on the readme.

The node version should go in a .node-version file with some instructions or links provided for setting up with nvm (Unix)/nvs (windows).

@PPPI
Copy link

PPPI commented Jul 7, 2023

On WSL2 with Ubuntu 20.04 the default apt install nodejs errors with

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type Function. Received type undefined
    at Object.promisify (internal/util.js:256:11)
    at Object.<anonymous> (/home/profir-petru/OATutor/OATutor/src/tools/preprocessProblemPool.js:11:17)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    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 Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

This seems related to nodejs/node#37972 which suggests that version 14.16.0 solves the issue while the default on WSL2 was version 10.19.0. Not sure if there are other issues that require a newer version than 14.16.0 though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants