【问题标题】:Command to remove node_modules and clear all watchman watches - MacOS删除 node_modules 并清除所有守望者手表的命令 - MacOS
【发布时间】:2021-05-25 19:21:30
【问题描述】:

大多数时候,我必须运行我的 React Native 项目的干净构建。 目前我正在使用这个命令:cd android && ./gradlew clean 清理gradle。 有没有清理gradle、删除node_moduleswatchman watches的命令?

【问题讨论】:

    标签: macos react-native node-modules watchman


    【解决方案1】:

    尝试在项目根目录的终端中运行以下命令。

    watchman watch-del-all && rm -rf node_modules/ && yarn install && react-native start --reset-cache"
    

    【讨论】:

      猜你喜欢
      • 2022-11-16
      • 2019-03-05
      • 2010-10-06
      • 2015-01-31
      • 1970-01-01
      • 2016-06-12
      • 1970-01-01
      • 2022-11-07
      • 2012-05-23
      相关资源
      最近更新 更多