npm run build 报错 ReferenceError: internalBinding is not defined

起因

公司给换了主机,重装了Node之后,执行npm run build 打包代码总是会报下面的错误

困扰了很多天,也百度了很多,试了很多方法,还是不行

今天不死心又去找解决方法,皇天不负有心人,终于解决了!

话不多说,下面进入正题

问题

背景:使用webpack构建---vue项目

问题:使用npm run build打包代码,报 ReferenceError: internalBinding is not defined

$ npm run build

> sass_mall@1.0.0 build D:\V2.1\saas\WR_sass_mall2
> node build/build.js

evalmachine.<anonymous>:25
'use strict';
^

ReferenceError: internalBinding is not defined
    at evalmachine.<anonymous>:25:1
    at Object.<anonymous> (D:\V2.1\saas\WR_sass_mall2\node_modules\npm\node_modules\graceful-fs\fs.js:11:1)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
    at Object.Module._extensions..js (internal/modules/cjs/l
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值