2017-10-16 47 views
0

这是一个较旧的约曼发生器,这是使用this.copy约曼发电机失败到this.copy

this.copy('_editorconfig', '.editorconfig'); 

ERROR建立相关断言错误:AssertionError的[ERR_ASSERTION]试图从一个复制不存在的源代码:_editorconfig

回答

0

此修复是由于处理副本的方式发生了变化。

this.fs.copy(
     this.templatePath('_editorconfig'), 
     this.destinationPath('.editorconfig') 
    ); 

作为一个说明这也是一个修补程序添加gitignore

this.fs.copy(
     this.templatePath('_gitignore'), 
     this.destinationPath('.gitignore') 
    );