gulp報錯
近期在用gulp的時候是正常的靖秩,今天再次使用發(fā)現(xiàn)報錯,
internal/util/inspect.js:31
const types = internalBinding('types');
ReferenceError: internalBinding is not defined
at internal/util/inspect.js:31:15
at req_ (D:\simbaFiles\myhtml\htmlGulp\node_modules\natives\index.js:137:5)
at require (D:\simbaFiles\myhtml\htmlGulp\node_modules\natives\index.js:110:12)
at util.js:25:21
at req_ (D:\simbaFiles\myhtml\htmlGulp\node_modules\natives\index.js:137:5)
at require (D:\simbaFiles\myhtml\htmlGulp\node_modules\natives\index.js:110:12)
at fs.js:42:21
at req_ (D:\simbaFiles\myhtml\htmlGulp\node_modules\natives\index.js:137:5)
at Object.req [as require] (D:\simbaFiles\myhtml\htmlGulp\node_modules\natives\index.js:54:10)
at Object.<anonymous> (D:\simbaFiles\myhtml\htmlGulp\node_modules\graceful-fs\fs.js:1:99)
原因:
應(yīng)該是昨天升級了node和npm竖瘾,將node版本升級至v10.15.1,npm升級至6.8.1后出現(xiàn)的花颗;
解決方案:
升級native版本
npm install natives@1.1.6
升級
可以正常使用:
效果圖