This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
清除 Windows 上的打包程序缓存
了解如何在 Windows 上使用 Expo CLI 或 React Native CLI 时清除 Yarn 或 npm 的打包器缓存。
需要在 macOS 或 Linux 上清除开发缓存吗?在这里找到相关命令。
你的项目有许多不同的缓存,这些缓存可能会阻止你的项目按预期运行。清除缓存有时可以帮助你解决与陈旧或损坏数据相关的问题,并且在排查和调试时通常很有用。
🌐 There are a number of different caches associated with your project that can prevent your project from running as intended. Clearing a cache sometimes can help you work around issues related to stale or corrupt data and is often useful when troubleshooting and debugging.
Expo CLI 和 Yarn
🌐 Expo CLI and Yarn
Expo CLI 和 npm
🌐 Expo CLI and npm
React Native CLI 和 Yarn
🌐 React Native CLI and Yarn
React Native CLI 和 npm
🌐 React Native CLI and npm
这些命令在做什么
🌐 What these commands are doing
在运行互联网找到的命令之前,先理解它们是一个好习惯。我们在下面解释了 Expo CLI、npm 和 Yarn 的每个命令,但相应的 React Native CLI 命令的行为是相同的。
🌐 It is a good habit to understand commands you find on the internet before you run them. We explain each command below for Expo CLI, npm, and Yarn, but the corresponding commands React Native CLI have the same behavior.