English 中文(简体)
如何清除反应的海滩?
原标题:How to clear react-native cache?

在反应性开发中,当仪器建造时,有多种藏匿点:

  1. React-native packager cache
  2. Emulator cache
  3. Java side cache (.gradle) folder (only in android)
  4. npm cache (if relevant?)

我也找不到什么东西? 由于我试图在反应中清除海滩,能够重复一只使用时发生的ug。 但是,排除上述这些藏匿点无助于。 甲状腺正.。 当电灯在建时,DO NOT的大多数浏览器都按预期说是UP-TO-DATE,因为我清除了海滩。

但是,仍有许多段落印刷本。 和:

附录

附录

附录

问题在于,我如何澄清与反应性发展有关的整个切身之处?

问题回答

For React Indigenous 主动做法(无省略)使用:

npm start -- --reset-cache

简单一(土著、npm和权宜之计)

For React Indigenous

react-native start --reset-cache

页: 1

npm start -- --reset-cache

接触

expo start -c

• 清除你康复土著项目藏匿点:

npm < 6.0 and RN < 0.50:

 watchman watch-del-all && rm -rf $TMPDIR/react-* &&
 rm -rf node_modules/ && npm cache clean && npm install && 
 npm start -- --reset-cache

npm >=6.0和RN >=0.50:

 watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* &&
 rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean --force &&
 npm install && npm start -- --reset-cache

目前,它采用<代码>npx,因此需要更新。

<>Reset-cache>/code>

www.un.org/Depts/DGACM/index_russian.htm Xcode -> Products -> Clean Building Folder

www.un.org/Depts/DGACM/index_russian.htm http://www.un.org。

审判

react-native start --reset-cache

对使用权宜之计的人

权宜之计

这是对我来说行之有效的:

watchman watch-del-all && rm -f podfile.lock && rm -rf node_modules && yarn && yarn start --reset-cache

下面的指挥为安康和亚里特人工作。

cd android && ./gradlew cleanBuildCache && cd .. &&
watchman watch-del-all && rm -rf node_modules/ &&
rm -rf $TMPDIR/react-native-packager-cache-* &&
rm -rf $TMPDIR/metro-bundler-cache-* &&  
yarn cache clean && yarn install && 
yarn start --reset-cache

Here s a great discussion on GitHub which helped me a lot. Clearing the Cache of your React Native Project by Jarret Moses

有4个不同情况的解决办法。

  1. RN <0.50 -
    watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache

  2. RN >=0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache

  3. NPM >=5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
  4. Windows - del %appdata%Temp eact-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache

解决办法与https://stackoverflow.com/questions/468738/how-to-clear-react-native-cache/51375437#51375437“Vikram Biwal s Response.

And there is a discussion below in the given link, so even if the above 4 cases don t work for you, you can scroll through and find a possible solution.

Clearing the Cache of your React Native Project: if you are sure the module exists, try this steps:

  1. Clear watchman watches: npm watchman watch-del-all
  2. Delete node_modules: rm -rf node_modules and run yarn install
  3. Reset Metro s cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*

If you are using WebStorm, press configuration selection drop down button left of the run button and select edit configurations:

edit configurations

双重点击 摘录: 在发射之前:

“发射前”/</a

http://www.un.org。

“arguments”/</a

愿分享我在这一问题上的经验:

我正面临这一问题,在我宣布任务主管机构开幕时,我注意到许多任务正在执行,与我的项目组合有关。

因此,我重新启动了我的《常设仲裁法院》,当它开始运转时,我可以安装所有必要的设施,以便解决问题,为我工作,希望能帮助一些人......。

我也存在同样的问题,我试图清除所有可能的藏匿点(几乎是上述所有解决办法),而我唯一为我工作的事情是杀 app,重新启用。

I went into this issue today, too. The cause was kinda silly -- vscode auto imported something from express-validator and caused the bug.

Just mentioning this in case anyone has done all the steps to clear cache/ delete modules or what not.

React native

 npm start -r-cache

or

yarn cache clean

Expo

expo start -c

甲型六氯环己烷

watchman watch-del-all && rm -rf node_modules/ &&
rm -rf $TMPDIR/react-native-packager-cache-* &&
rm -rf $TMPDIR/metro-bundler-cache-* &&  
npm cache clean && yarn install && 
npm start --reset-cache

2. 考虑使用以下代码进行清理:

cd ios && xcodebuild clean && cd .. && npm run ios
  • android cd android && ./gradlew clean
  • ios open xcode then choose product => clear all issue and clean build folder

收入开始——重建

页: 1

TO Clear cache in IOS/Xcode

Delete folders in /Users/{YOUR_USERNAME}/Library/Developer/Xcode/DerivedData/ and try again.

rm ~/Library/Developer/Xcode/DerivedData/* 




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...