From 77e3b2912d55dc3de8e03c4a28e2fa641b00b0ee Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 9 Dec 2018 02:51:03 +0100 Subject: [PATCH] fix(core): update --- ts/mod_npm/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; };