openfoodfacts-server
openfoodfacts-server copied to clipboard
'make dev' giving error when not on the latest version of npm
What
- When I executed the 'make dev' command, I ran into errors with the final error message being: "failed to solve: process "/bin/sh -c npm install".
Solution
- It seems like the error was due to the fact that my npm version was 10.5.0, but the latest version is 10.6.0. So if anyone else is running into this error, all I had to do is
npm install -g [email protected]
in order to fix it.
To be honest, I don't quite understand. When running make dev
, node
and npm
are only run in a docker
container. In fact, my WSL2 doesn't have either npm
, nor node
installed, and I can use make dev
without any issues.
Do you happen to have any more detailed logs of when it failed?