【问题标题】:How to uninstall react-native-cli on mac?如何在 mac 上卸载 react-native-cli?
【发布时间】:2019-12-06 11:30:34
【问题描述】:

如何在 Mac 上卸载 react-native-cli??

我尝试了npm uninstall react-native-cli,它在下面给出了我。

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.

我想彻底清除我的 react 原生环境并重新安装它。我该怎么办?

【问题讨论】:

    标签: react-native npm


    【解决方案1】:

    卸载全局包

    要卸载无作用域的全局包,请在命令行上使用带有-g 标志的uninstall 命令。如果包有作用域,则包括作用域。

    npm uninstall -g react-native-cli
    

    【讨论】:

    • 您好感谢您始终如一地帮助我。我遇到了一个奇怪的问题,在遵循您的 AsyncStorage 回答时完全破坏了我的环境……您能帮帮我吗?
    • 我无法检查足够的时间流逝。好的。我会
    • 我刚刚发布了新问题@hong develop
    • 我做到了,我仍然可以做“react-native init GarbageProject”
    猜你喜欢
    • 2019-05-30
    • 1970-01-01
    • 2015-10-18
    • 2010-11-04
    • 2020-07-27
    • 2017-10-12
    • 2021-04-29
    • 2018-10-07
    • 1970-01-01
    相关资源
    最近更新 更多