自学内容网 自学内容网

npm和yarn清理缓存命令

yarn清除缓存

1、查看yarn全局缓存目录

yarn cache dir

2、清除缓存

yarn cache clean

npm 清除缓存

1、将node-modules文件夹先删除
2、清理缓存命令:

npm cache clean --force

3、重新安装一次即可

npm install /cnpm install

原文地址:https://blog.csdn.net/qq_19734597/article/details/140370460

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!