2015-10-16 176 views
3
產卵命令

我建立一個發電機,我需要在我的應用程序某個目錄年底npm install,我嘗試了諸如:選擇其中約曼

this.spawnCommandSync('cd', [this.destinationRoot() + '/my/folder']) 
this.spawnCommandSync('npm', ['install']) 

,但它不工作。

npm install不能在不同目錄中調用,也不能在yeoman install mixins中調用。

回答