diff --git a/lib/datasource/npm.js b/lib/datasource/npm.js index 31a956dae162cf69570a4f299fa176e450842366..27ac1b83d7262825be45c6918b8e3c7e1e6ae5cc 100644 --- a/lib/datasource/npm.js +++ b/lib/datasource/npm.js @@ -155,7 +155,11 @@ async function getDependency(name, retries = 5) { `gist.${parsedEndpoint.hostname}` ); } - + // Massage www out of github URL + res.repository.url = res.repository.url.replace( + 'www.github.com', + 'github.com' + ); repositoryUrl = parse(res.repository.url, { extraBaseUrls }); } if (!repositoryUrl) {