-
Notifications
You must be signed in to change notification settings - Fork 88
Description
too long, not gonna read
clone: https://github.com/Kaltsoon/rate-repository-api
install and use Node 16
My OS: Intel; Sonoma 14.5
I could not get this API to run with Node 23 or Node 22, and it got very hairy.
First I'm running Python 3.12 and that gave distutils deprecated issues, so I installed setuptools.
Then using both Node vs 23 and 22 there was an error pattern that I think ought to be referenced here:
once I reach the final instruction,
I run
npm start
and I get
> [email protected] start
> node -r esm ./src/index.js
node[48405]: void node::fs::InternalModuleStat(const FunctionCallbackInfo<Value> &) at ../src/node_file.cc:1040
Assertion failed: (args.Length()) >= (2)
----- Native stack trace -----
1: 0x10a9f5826 node::Assert(node::AssertionInfo const&) [/Users/jaycrawford/.nvm/versions/node/v22.14.0/bin/node]
2: 0x10c9d28d0 node::fs::InternalModuleStat(v8::FunctionCallbackInfo<v8::Value> const&) (.cold.3) [/Users/jaycrawford/.nvm/versions/node/v22.14.0/bin/node]
3: 0x10aa0937c node::fs::InternalModuleStat(v8::FunctionCallbackInfo<v8::Value> const&) [/Users/jaycrawford/.nvm/versions/node/v22.14.0/bin/node]
4: 0x10b725e22 Builtins_CallApiCallbackGeneric [/Users/jaycrawford/.nvm/versions/node/v22.14.0/bin/node]
----- JavaScript stack trace -----
1: /Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:34535
2: /Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:34176
3: /Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:34506
4: /Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:173374
5: /Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:173420
6: /Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:173521
7: /Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:258942
8: /Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:261569
9: e (/Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:262673)
10: get (/Users/jaycrawford/Documents/GitHub/FullStackOpenSubmissions/part10/rate-repository-api/node_modules/esm/esm.js:1:262740)
Kaltsoon, the author of this API who is mentioned in this repository's README has the original publication of this API in the repository at the address: https://github.com/Kaltsoon/rate-repository-api
in Kaltsoon's repository README, it is mentioned that this API was:
"Tested with Node version 16, but later versions might work as well"
After I cloned Kaltsoon's API, installed Node 16, and switch to Node 16, everything ran without any errors.