http repository dependency in package-lock.json

Viewed 1783
1 Answers

For a while the NPM registry itself had a bug where the tarball reference for various packages included http references rather than https. Once in your cache these versions will continue to be listed with http sources.

Within a given project / repository running the following resolved the issue for me:

 npm cache clean --force
 rm -rf node_modules/
 git checkout package-lock.json // To undo any https -> http lines if required
 npm install
Related