'Error when trying to clear react-native cache

When doing npm start -- --reset-cache or yarn start --reset-cache I get the error error: unknown option '--reset-cache'

npm version 8.5.5 yarn version 1.22.17



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source