Closed irevoire closed 7 months ago
Hi @irevoire, thanks for reaching out.
Have you tried a full npm install .
?
I just tried the following on a Ubuntu and macOS, it seems to succeed:
git clone --depth 1 https://github.com/smarr/rebenchdb
cd rebenchdb
npm install .
Sadly, no, I get the same error as before :pensive:
I'm running on arch, though, and since there are no dependencies specified, I was lowkey expecting something like that. But I thought it would work with docker build
What version of npm/node are you using?
I am having here npm 9.8.0 + node v20.5.1 and npm 9.9.2 + v19.9.0.
And just to be sure, the installation of the dependencies from package.json
/package-lock.json
worked without issues?
What version of npm/node are you using?
Ooh yes, funny, it looks like I got a very outdated version for both npm and node (even though I just installed both of them like one hour ago)
% npm --version
6.14.15
% node --version
v14.18.0
And just to be sure, the installation of the dependencies from package.json/package-lock.json worked without issues?
Honestly, I don't know how anything works in the js/ts ecosystem; I think it worked but cannot guarantee it. The only error I encountered was the one I showed you, and I think the dependencies were gathered at the very beginning of the process, so I would say yes.
After updating npm + node with nvm, it worked, and I was even able to run docker build .
thanks!
I don't know if there is a way to specify the minimum required version of node or npm, but that would be nice.
And isn't it strange that docker seems to use my npm install instead of using the one we know that works? :thinking:
I don't know if there is a way to specify the minimum required version of node or npm, but that would be nice.
I believe I do exactly that here: https://github.com/smarr/ReBenchDB/blob/master/package.json#L31-L33
But, that might not be backwards compatible and a more recent thing than the versions you got 😄
And in the case of Docker, it's even more odd indeed. The Dockerfile says it is using postgres:16-bookworm
, which I would hope implies a certain minimum version. Hm, well, looking at it, Bookworm comes with v18.19, which is lower than what I say I required hmmm...
I don't know if there is a way to specify the minimum required version of node or npm, but that would be nice.
Looks like there is, and you already did what you were supposed to do here https://github.com/smarr/ReBenchDB/blob/master/package.json#L31-L33
Theoretically, from what I see, the only thing missing is the .npmrc
; https://stackoverflow.com/questions/29349684/how-can-i-specify-the-required-node-js-version-in-package-json
But I tried to set it, and it didn't work either in my tests, so I have no idea of what you should do ahah
EDIT: Oops, you were faster than me, but I agree 100% ahah
Bookworm comes with v18.19, which is lower than what I say I required hmmm...
It's super strange that when I updated my local npm version, it fixed the docker build
I spent some time on moving to Docker compose, maybe you could give #175 a try?
Hey! Yeah, sorry, I'm not at home right now; I'll definitely give it a try on Monday and keep you up
No hurry :)
The docker-compose did work.
Closing the issue :+1:
Oh, good. Thanks for trying!
Hey, when I run
npm run compile
on the latest commit of themain
branch it throws these errors;I don't think it's especially related to my setup or node version, as running
docker build .
doesn't work either with pretty much the same errors: