Snapcraft failing to install nodejs packages

I’m having difficulties with snapcraft builds, where a npm install of nodejs packages returns the following log line repeated many times, until eventually the build fails.

"CONNECT HTTP/1.1" 501 26 "-" "-"

Status 501 is “not implemented”, so I’m not sure if the http proxy for snapcraft builds is conflicting with npm install.

Info: I’m using the node/16/stable base for this.

Any help is much appreciated, and if I can provide more information please let me know :slight_smile:

might be related to

Thanks for the suggestion. I think those env vars are set, as the logs are due to npm/nodejs attempting to connect via the proxy.

1 Like