Can't run npm command on VM, results in "Volta error: Could not download node"

I am trying to run an npm command on my deployed app by connecting to VM using flyctl ssh console and then navigating to app/ and running npm run seed. This gives me the following error (even though I’ve specified node version in Dockerfile)

Volta error: Could not download node@18.10.0

Please verify your internet connection and ensure the correct version is specified.
Error details written to /.volta/log/volta-error-2023-02-01_15_49_34.852.log

And when I look inside error log, I get this:

Error cause: Io Error: invalid peer certificate contents: invalid peer certificate: UnknownIssuer

Does anyone have any ideas what could be causing this?

I’ve found this github issue relating to volta version 1.1.1 which appears to be related to this issue

1 Like