yarn install error: no such file or directory, copyfile xxx -> yyy

1,075 阅读1分钟

一、背景

最近在研究开源项目的时候,将项目clone下来后,下载包 yarn 的时候,出现

image.png

二、解决方案

可能是 yarn 缓存的问题, 我执行这个命令,清除yarn的缓存之后再下载就可以了

rm -rf node_modules && yarn cache clean && yarn install

三、参考

Error: ENOENT: no such file or directory, copyfile #5275