npm How to uninstall react-native-cli on mac?

csga3l58  于 2022-12-13  发布在  React
关注(0)|答案(2)|浏览(164)

How can I uninstall react-native-cli on Mac??
I tried npm uninstall react-native-cli and it gives me below.

npm WARN eslint-plugin-react@7.12.4 requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react-native@3.6.0 requires a peer of eslint@^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.

I want to completely wipe-off my react native environment and re-install it. What should I do?

rta7y2nd

rta7y2nd1#

正在卸载全局软件包
要卸载未指定作用域的全局程序包,请在命令行上使用带有-g标志的uninstall命令。如果程序包已指定作用域,请包括作用域。

npm uninstall -g react-native-cli
h9vpoimq

h9vpoimq2#

If you need to completely remove react native environment you need to remove CLI

npm uninstall -g react-native-cli @react-native-community/cli

next, remove watchman

brew uninstall watchman

remove Android env:
How to completely uninstall Android Studio on Mac?
remove IOS env:
How to Completely Uninstall Xcode and Clear All Settings

相关问题