diff --git a/lib/core/initClient.js b/lib/core/initClient.js index 327c2437..9f3efa25 100644 --- a/lib/core/initClient.js +++ b/lib/core/initClient.js @@ -69,6 +69,11 @@ class Client { name: 'proxy', message: '请输入npm的proxy(默认为空):' }]).then((answer) => { + // Handle user input, trim space + for (let prop in answer) { + answer[prop] = answer[prop].trim(); + } + // Save user config to local file system utils.safeDump(answer, rcPath); log.debug('.feflow/.feflowrc.yml 配置文件已经创建'); diff --git a/package.json b/package.json index 4f65e263..5e4ea2b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "feflow-cli", - "version": "0.11.2", + "version": "0.11.3", "description": "A command line tool aims to improve front-end engineer workflow.", "main": "lib/index.js", "scripts": {