diff --git a/lib/authutil.js b/lib/authutil.js index ea8ba6e3..ef9531fa 100644 --- a/lib/authutil.js +++ b/lib/authutil.js @@ -43,8 +43,9 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) { }); } // Remove http: or https: from front of registry. - const authString = registryUrl.replace(/(^\w+:|^)/, '') - + ':_authToken=' + process.env['NODE_AUTH_TOKEN']; + const authString = registryUrl.replace(/(^\w+:|^)/, '') + + ':_authToken=' + + process.env['NODE_AUTH_TOKEN']; const registryString = scope ? `${scope}:registry=${registryUrl}` : `registry=${registryUrl}`;