openfoodfacts-server icon indicating copy to clipboard operation
openfoodfacts-server copied to clipboard

'make dev' giving error when not on the latest version of npm

Open andrewhuanggg opened this issue 9 months ago • 1 comments

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.

andrewhuanggg avatar Apr 25 '24 19:04 andrewhuanggg

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?

hangy avatar Apr 25 '24 19:04 hangy