您现在的位置是: 首页 > 前端开发 gulp3 在 node12 上运行出现异常 primordials is not defined
gulp3 在 node12 上运行出现异常 primordials is not defined
2020-06-05 【前端开发】 4060人已围观 7209次浏览
简介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 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- gulp3 在 node12 上运行出现异常 primordials is not defined
- SqlServer字符串处理
- idea去掉Smart commands execution提示
- LNMP 手动更新 SSL 证书
- SqlServer 优化技巧
- 记一次Java MessageFormat.format踩坑
- Chrome 谷歌浏览器清除HTTPS证书缓存
- Vue 监听回车 el-input 和 input 使用方法不同
- SqlServer 查询包含指定字段的存储过程
- Vue 路由跳转错误 NavigationDuplicated: Avoided redundant navigation to current location