Gulp task failing when run from VS 2015 Task Runner explorer, but not from command prompt

前端 未结 2 1740
清歌不尽
清歌不尽 2020-12-03 08:09

I have some Gulp tasks to do the typical clean, build, release actions for a website. Nothing particularly unusual in my

2条回答
  •  星月不相逢
    2020-12-03 08:55

    See if you can print out the node version that Visual Studio is shelling out to. It is likely that the version of Node that Visual Studio is using is different than the one you are using at the console. The Map collection looks like it was introduced in Node v4.0.0 https://nodejs.org/en/blog/release/v4.0.0/

    You should be able to log the Node version using

    console.log('Version: ' + process.version);

提交回复
热议问题