From 62b281d497cc30dee0b4ed3894684ad1cf7008c2 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sun, 4 Apr 2021 23:30:58 +0800 Subject: [PATCH] refactor: 1 --- packages/core/src/modules/plugin/node/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/modules/plugin/node/index.js b/packages/core/src/modules/plugin/node/index.js index 1df36b0..2380b03 100644 --- a/packages/core/src/modules/plugin/node/index.js +++ b/packages/core/src/modules/plugin/node/index.js @@ -119,8 +119,8 @@ const NodePlugin = function (context) { async setProxy (ip, port) { const cmds = [ - `npm1 config set proxy=http://${ip}:${port}`, - `npm1 config set https-proxy=http://${ip}:${port}` + `npm config set proxy=http://${ip}:${port}`, + `npm config set https-proxy=http://${ip}:${port}` ] const env = []