question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Packager] Command or flag to clean cache

See original GitHub issue

When introducing a custom .babelrc, it’s necessary to add the resetCache flag to the packager. This requires digging into node_modules and isn’t the most developer friendly (DX anybody? 😛)

So we should either allow users to do:

./node_modules/react-native/packager/packager.sh clean

or

./node_modules/react-native/packager/packager.sh -root . -clean

Also open to other solutions! cc @amasad

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:6
  • Comments:38 (17 by maintainers)

github_iconTop GitHub Comments

55reactions
gaearoncommented, Sep 17, 2015
hours_spent_here += 3;
50reactions
lprhodescommented, Sep 27, 2016

npm start – --reset-cache works much better than npm start --reset-cache

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Clean the Package Cache in Arch Linux - MakeUseOf
Clearing the Package Cache on Arch Linux​​ This will remove any packages from the cache that are not currently installed. Adding another -c...
Read more >
How To Clean The Package Cache In Arch Linux - OSTechNix
You can clean the cached packages by running sudo pacman -Sc command. ... remove all cached versions of uninstalled packages, re-run paccache with...
Read more >
How to clear react-native cache? - Stack Overflow
For React Native Init approach (without expo) use: npm start -- --reset-cache.
Read more >
npm-cache
Manipulates packages cache. ... Used to add, list, or clean the npm cache folder. ... This command is primarily intended to be used...
Read more >
conda clean
Remove all writable package caches. This option is not included with the --all flag. WARNING: This will break environments with packages installed using ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found