npm和yarn清理缓存命令
文章类型:其他
发布者:hp
发布时间:2024-11-19
有时候我们在安装包时,会安装不上,一直卡着不动,或者超时情况,这个时候需要清除缓存,
1:yarn
查看缓存目录
yarn cache dir
清除缓存
yarn cache clean
2:npm
将node-modules文件夹先删除
清除缓存命令
npm cache clean --force
重新安装
npm install /cnpm install
最近更新
站长推荐
Copyright © www.cqhxb.com All Rights Reserved | 渝公网安备50011302222502 | 渝ICP备17004821号 | | 互联网有害举报中心 | 管理员登录