您现在的位置是: 首页 > 前端开发 gulp3 在 node12 上运行出现异常 primordials is not defined
gulp3 在 node12 上运行出现异常 primordials is not defined
2020-06-05 【前端开发】 4828人已围观 8187次浏览
简介gulp3 在 node12 上运行出现异常,出现提示primordials is not defined
在 node 12 上使用 gulp3 时出现下面的错误
fs.js:27
const { Math, Object } = primordials;
^
ReferenceError: primordials is not defined
查找 gulp 的 GitHub issues 发现有出现过同样问题的
问题原因就是 node 版本太高了,比如 node 12.x.x ,但是gulp中的graceful-fs/fs.js在gulp还是3的版本下,是不支持该操作的
解决方案
如果是正式项目,node尽量使用长期支持版本,比如目前的10.18.1,npm对应6.13.4
然后重新npm install 构建项目,再次执行gulp 即可解决上面出现的问题
很赞哦! (0)
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- SqlServer 优化技巧
- CentOS 安装 Docker
- 解决Mac突然没声音的问题
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- Nginx转发阿里云OSS内网流量
- SpringBoot 集成 Elasticsearch 7.8.1 出现错误 Factory method 'elasticsearchRestHighLevelClient' threw exception; nested exception is java.lang.NoSuchFieldError: IGNORE_DEPRECATIONS
- SpringBoot 启动测试时出现提示 Test class should have exactly one public zero-argument constructor
- gulp3 在 node12 上运行出现异常 primordials is not defined
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- 在使用Flutter进行网络请求时,使用Dio访问https地址出现unable to get local issuer certificate错误