删除 node_modules 并清除所有 watchman 手表的命令 - MacOS
Command to remove node_modules and clear all watchman watches - MacOS
大多数时候,我必须 运行 干净地构建我的 React Native 项目。
目前我正在使用此命令:cd android && ./gradlew clean
来清理 gradle
。
是否有清理 gradle
、删除 node_modules
和 watchman watches
的命令?
尝试运行在项目根目录的终端中执行以下命令。
watchman watch-del-all && rm -rf node_modules/ && yarn install && react-native start --reset-cache"
大多数时候,我必须 运行 干净地构建我的 React Native 项目。
目前我正在使用此命令:cd android && ./gradlew clean
来清理 gradle
。
是否有清理 gradle
、删除 node_modules
和 watchman watches
的命令?
尝试运行在项目根目录的终端中执行以下命令。
watchman watch-del-all && rm -rf node_modules/ && yarn install && react-native start --reset-cache"