gulp报错
近期在用gulp的时候是正常的,今天再次使用发现报错,
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)
原因:
应该是昨天升级了node和npm,将node版本升级至v10.15.1,npm升级至6.8.1后出现的;
解决方案:
升级native版本
npm install natives@1.1.6
升级
可以正常使用:
效果图
网友评论