插件“ gulp-file-include”中出现错误,没有这样的文件

时间:2019-12-08 19:49:39

标签: gulp

我不得不重命名我的Icons文件夹中的许多文件,因为它们的文件名中包含#,并且是Netifly上的禁止字符

现在,当我在项目目录中运行gulpgulp build时,出现以下错误:

$ gulp build
[19:40:52] Using gulpfile ~/Desktop/mkt_website/marketing_website/gulpfile.js
[19:40:52] Starting 'build'...
[19:40:52] Starting 'clean:tmp'...
[19:40:52] Starting 'clean:dist'...
[19:40:52] Starting 'copy:all'...
[19:40:52] Starting 'copy:libs'...
[19:40:52] Finished 'clean:tmp' after 11 ms
[19:40:52] Finished 'clean:dist' after 12 ms
[19:40:53] Finished 'copy:libs' after 1.47 s
[19:40:54] Finished 'copy:all' after 2.64 s
[19:40:54] Starting 'scss'...
[19:40:55] Finished 'scss' after 1 s
[19:40:55] Starting 'html'...
[19:40:57] 'html' errored after 2.19 s
[19:40:57] Error in plugin "gulp-file-include"
Message:
    ENOENT: no such file or directory, open '/Users/kareem/Desktop/mkt_website/marketing_website/src/assets/img/icons/duotone-icons/Code/Git#1.svg'
Details:
    domainEmitter: [object Object]
    domainThrown: false

[19:40:57] 'build' errored after 5.84 s

编辑:

如果有帮助,请链接到我的gulpfile.js https://pastebin.com/fEs2DrZp

1 个答案:

答案 0 :(得分:0)

自文件名更改以来,您的npm缓存似乎未更新

NPM缓存

首先运行select b.orderTime as orderDate, sum( case when b.soStatus='00' then count(a.orderNo) else 0 end ) as Not_Allocated, sum( case when b.soStatus='30' then count(a.orderNo) else 0 end ) as Partially_Allocated, sum( case when b.soStatus='40' then count(a.orderNo) else 0 end ) as Allocated, sum(case when b.soStatus='50' then count(a.orderNo) else 0 end ) as Partially_Picked , sum(case when b.soStatus='60' then count(a.orderNo) else 0 end ) as Picked, sum(case when b.soStatus='63' then count(a.orderNo) else 0 end ) as Cartonized, sum(case when b.soStatus='99' then count(a.orderNo) else 0 end ) as Closed, case when datediff(NOW(),b.orderTime) >=2 then '>=H-2' when datediff(NOW(),b.orderTime) =1 then 'H-1' when datediff(NOW(),b.orderTime) <1 then 'H' end as status from DOC_ORDER_HEADER b left join DOC_ORDER_DETAILS a on b.organizationId='ID_8COM' and b.warehouseId='WHCPT01' AND a.orderno = b.orderno where b.organizationId='ID_8COM' and b.warehouseId='WHCPT01' ,然后看看会得到什么,这可能需要一段时间,但一旦完成,请尝试重新运行gulp。如果仍然看到错误,也可以运行npm cache verify

另一个可能的问题

gulp中的npm cache clean --force错误通常是由于某种竞争状况引起的,我建议更新您的构建任务,以便先清除它,然后再进行复制。目前,它们正在并行运行。因此,gulp可能会删除您想要保留的文件。

将构建任务更改为:ENOENT

第二点不太可能是问题的原因,但稍后可能会困扰您。

也许也值得一看:ENOENT, no such file or directory

相关问题