gulp-internalBinding未定义 [英] gulp - internalBinding is not defined

查看:70
本文介绍了gulp-internalBinding未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试为我的 UnderStrap子主题运行命令gulp watch-bs时遇到此错误用于WordPress.我已经使用该命令一年了,但是,今天当我将 node npm 更新到最新版本时,我收到了此错误.

I'm getting this error when I try to run the command gulp watch-bs for my UnderStrap child theme for WordPress. I've been using this command for a year with no problems, but I received this error today when I updated my node and npm to their latest versions.

ReferenceError: internalBinding is not defined
    at internal/util/inspect.js:31:15
    at req_ (C:\xampp\htdocs\node_modules\natives\index.js:137:5)
    at require (C:\xampp\htdocs\node_modules\natives\index.js:110:12)
    at util.js:25:21
    at req_ (C:\xampp\htdocs\node_modules\natives\index.js:137:5)
    at require (C:\xampp\htdocs\node_modules\natives\index.js:110:12)
    at fs.js:42:21
    at req_ (C:\xampp\htdocs\node_modules\natives\index.js:137:5)
    at Object.req [as require] (C:\xampp\htdocs\node_modules\natives\index.js:54:10)
    at Object.<anonymous> (C:\xampp\htdocs\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:99)

我已阅读此处,为了解决该问题,我需要运行此命令:

I've read here that, in order to resolve the issue, I need to run this command:

npm install natives@1.1.6

但这不能帮助解决问题.

but this did not help resolve the issue.

我还想念其他东西吗?

推荐答案

我遇到了与您相同的问题.为了解决这个问题,我在devDependencies部分的package.json中添加了以下内容

I ran into the same issue as you. To fix it, I added the following to my package.json in the devDependencies section

"natives": "^1.1.6"

这篇关于gulp-internalBinding未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆