您现在的位置是: 首页 > 前端开发 gulp3 在 node12 上运行出现异常 primordials is not defined
gulp3 在 node12 上运行出现异常 primordials is not defined
2020-06-05 【前端开发】 4591人已围观 7879次浏览
简介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 项目完整部署方案
站长推荐
猜你喜欢
- Python自动生成和安装requirements.txt文件中的依赖
- Laravel Dingo/api 出现 The version given was unknown or has no registered routes.报错
- 在使用Flutter进行网络请求时,使用Dio访问https地址出现unable to get local issuer certificate错误
- ThinkPHP 解决跨域访问问题
- layUI点击按钮页面刷新问题解决方案
- CentOS 安装JDK
- springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- SpringBoot 启动提示 Requested bean is currently in creation: Is there an unresolvable circular reference?
- win10 cmd下运行python命令弹出windows应用商店问题