您现在的位置是: 首页 > 前端开发 gulp3 在 node12 上运行出现异常 primordials is not defined
gulp3 在 node12 上运行出现异常 primordials is not defined
2020-06-05 【前端开发】 4431人已围观 7690次浏览
简介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 项目完整部署方案
站长推荐
猜你喜欢
- Mac禁用Adobe Creative Cloud自启状态栏
- Laravel项目出现could not be opened: failed to open stream: Permission denied
- SpringBoot 定时任务 多线程
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- 在更新python时出现dyld: Library not loaded: /usr/local/opt/libpsl/lib/libpsl.5.dylib,Reason: image not found错误解决方案
- Vue 路由跳转错误 NavigationDuplicated: Avoided redundant navigation to current location
- CentOS 安装Node.js
- 迁移 Docker 目录
- Nginx转发阿里云OSS内网流量