2

I have this package in my package.json: "uWebSockets.js": "github:uNetworking/uWebSockets.js#v18.9.0",

when trying to install this package within docker with npm i -> works

but with npm ci i get: npm ERR! Host key verification failed

First of all, would like to know what is the difference.

second, if I can get help on how to do CI within the docker file.

Thanks!!

BB_KING
  • 145
  • 2
  • 13

1 Answers1

0

A little bit late but here is a work around, taken from this github issue:

For the benefit of anyone looking for a workaround who struggled to understand the conversation above, if you are installing something from a public github repo and want to force https, this should work:

npm install git+https://<githubUsername>@github.com/<project>/<repo>.git

It potentially doesn't matter what github username you use, because everyone can access public repos. The use of the username qualifies as 'auth' and therefore forces the protocol to be kept, as explained in point 2 in #2610 (comment).

phentnil
  • 2,195
  • 2
  • 14
  • 22