3
产卵命令
我建立一个发电机,我需要在我的应用程序某个目录年底npm install
,我尝试了诸如:选择其中约曼
this.spawnCommandSync('cd', [this.destinationRoot() + '/my/folder'])
this.spawnCommandSync('npm', ['install'])
,但它不工作。
和npm install
不能在不同目录中调用,也不能在yeoman install mixins中调用。
完美,谢谢:) – Calvein