dudulaopo833 / Tools-Learning

各种杂七杂八-错误处理等
0 stars 0 forks source link

yarn run failed in v0.27.5 but successed in v0.24.5 #14

Open dudulaopo833 opened 7 years ago

dudulaopo833 commented 7 years ago

While use 'commander' package to create some commands(e.g: dw-dev init/ dw-dev create). I use 'yarn run dw-dev' to list out all the commands of dw-dev, it successed in v0.24.5 and v0.27.5. But if I use 'yarn run dw-dev init' to run the command 'dw-dev init', it successed in v0.24.5 but it failed in v0.27.5 with reason '"init' is not recognized as an internal or external command, operable program or batch file.'

Refer to: import inquirer from 'inquirer'; import program from 'commander';