gulp - internalBinding 未定义 [英] gulp - internalBinding is not defined
问题描述
当我尝试为我的 gulp watch-bs 时出现此错误WordPress 的noreferrer">UnderStrap 子主题.我已经使用这个命令一年了,没有任何问题,但是今天当我将我的 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:xampphtdocs
ode_modules
ativesindex.js:137:5)
at require (C:xampphtdocs
ode_modules
ativesindex.js:110:12)
at util.js:25:21
at req_ (C:xampphtdocs
ode_modules
ativesindex.js:137:5)
at require (C:xampphtdocs
ode_modules
ativesindex.js:110:12)
at fs.js:42:21
at req_ (C:xampphtdocs
ode_modules
ativesindex.js:137:5)
at Object.req [as require] (C:xampphtdocs
ode_modules
ativesindex.js:54:10)
at Object.<anonymous> (C:xampphtdocs
ode_modulesvinyl-fs
ode_modulesgraceful-fsfs.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
但这无助于解决问题.
我还错过了什么吗?
推荐答案
我遇到了和你一样的问题.为了解决这个问题,我在 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屋!