diff --git a/ts/mod_npm/index.ts b/ts/mod_npm/index.ts index a14b7ad..00a4c44 100644 --- a/ts/mod_npm/index.ts +++ b/ts/mod_npm/index.ts @@ -47,14 +47,14 @@ const prepare = async () => { if (npmrcFileString.length > 0) { logger.log('info', 'found one or more access tokens'); - logger.log('info', `setting default npm registry to ${config.npmRegistryUrl}`); - await bash(`npm set registry https:${config.npmRegistryUrl}`); } else { logger.log('error', 'no access token found! Exiting!'); process.exit(1); } plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc'); + logger.log('info', `setting default npm registry to ${config.npmRegistryUrl}`); + await bash(`npm set registry https:${config.npmRegistryUrl}`); return; };