diff --git a/src/main/js/npm.js b/src/main/js/npm.js index 7467f94..429e67d 100644 --- a/src/main/js/npm.js +++ b/src/main/js/npm.js @@ -24,7 +24,7 @@ export const fetchPkg = async (pkg) => { export const fetchManifest = async (pkg, {nothrow} = {}) => { const {npmRegistry, npmToken, npmConfig} = pkg.config const bearerToken = getBearerToken(npmRegistry, npmToken, npmConfig) - const url = getManifestUrl(npmRegistry, pkg.name, pkg.version) + const url = getManifestUrl(npmRegistry, pkg.name, pkg.version || 'latest') const reqOpts = bearerToken ? {headers: {authorization: bearerToken}} : {} try {