运行gulp的时候出错

sun_shine_wei 2020-03-04 09:20:46

E:\python\untitled\health\front>gulp
E:\python\untitled\health\front\node_modules\gulp-cache\lib\index.js:60
async _processFileAsync(inputFile, signals = new EventEmitter()) {
^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (E:\python\untitled\health\front\gulpfile.js:6:13)
at Module._compile (module.js:556:32)
出现这样的错误是为什么?是因为包安装的时候没有安装完全还是怎么回事
...全文
193 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
 子午 2020-06-20
  • 打赏
  • 举报
回复
gulp-cache这个包有问题,可以尝试在gulpfile.js中注释掉var cache = require('gulp-cache'); 在运行试一下

10,606

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧