Gulp - Visual Studio 2017 - MSB3073使用代码1退出命令“gulp postbuild”

问题描述:

在Visual Studio 2017中,我收到错误MSB3073 The command "gulp postbuild" exited with code 1Gulp - Visual Studio 2017 - MSB3073使用代码1退出命令“gulp postbuild”

在我一饮而尽文件我有:

gulp.task('postbuild', function() { 
    //... 
}); 

在命令行中,我得到的错误,当我尝试gulp loc

C:\Users\User\AppData\Roaming\npm\node_modules\gulp\node_modules\semver\semver.js:281 
throw new TypeError('Invalid Version: ' + version); 
^ 

TypeError: Invalid Version: undefinedypeError('Invalid Version: ' + version); 

在我来说,我只需要添加一个环境变量NODE_PATH指向%AppData%\npm\node_modules