2017-05-22 46 views
5

使用Win10的Pro/VS2015與「網站」項目(不asp.net,基本的網站)Visual Studio任務運行程序「SyntaxError:在嚴格模式下使用const」。

當試圖保存/重載gulpfile.js我收到錯誤消息(從任務運行資源管理器/輸出)

SyntaxError: Use of const in strict mode.

在它是在窒息本案「吞掉,改變」

我已經通過提供的答案和評論看:


In my case the environment path, $(PATH) already include the global install of node but I needed to move it ahead of the $(DevEnvDir) paths so that it would get priority. 在我的情況下,環境路徑,$(PATH)已經包括全球安裝節點,但我需要將其移動到$(DevEnvDir)路徑之前,以便獲得優先級。

(加入後正確答案提供,感謝@baao)

+1

'node -v'的輸出是什麼? – baao

+0

v6.10.3(1以上) –

+2

我想這裏是你的答案:https://github.com/sindresorhus/gulp-imagemin/issues/178#issuecomment-218131138 – baao

回答

相關問題