diff --git a/lib/command-actions/init.js b/lib/command-actions/init.js index ce41ef4..5b0fdf1 100644 --- a/lib/command-actions/init.js +++ b/lib/command-actions/init.js @@ -67,7 +67,7 @@ function mainInit(answers) { const tarsConfig = require(`${cwd}/tars-config.js`); if ((answers && answers.useBabel) || tarsConfig.useBabel) { - commandToExec += ' && npm i @babel/preset-env --save'; + commandToExec += ' && npm i --save @babel/preset-env@"<8.0.0" @babel/core@"<8.0.0"'; } exec(commandToExec, (error, stdout, stderr) => { diff --git a/package-lock.json b/package-lock.json index 0a6721f..4b312b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "tars-cli", - "version": "1.10.0", + "version": "1.10.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 528fee2..f05e376 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tars-cli", - "version": "1.10.0", + "version": "1.10.1", "engines": { "node": "^6.x.x" },