美文网首页
gulp报错internalBinding is not def

gulp报错internalBinding is not def

作者: 苏北苝 | 来源:发表于2019-03-01 10:52 被阅读0次

    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
    
    升级

    可以正常使用:


    效果图

    相关文章

      网友评论

          本文标题:gulp报错internalBinding is not def

          本文链接:https://www.haomeiwen.com/subject/uywruqtx.html