【问题标题】:Expo CLI requires installation after being installed (macOs)Expo CLI 安装后需要安装 (macOs)
【发布时间】:2021-08-22 20:45:50
【问题描述】:

我正在尝试在我的终端上运行-npm start,但我收到通知This command requires Expo CLI,并可选择全局安装它。如果我这样做,我会立即收到相同的消息,使用相同的选项来安装 Expo CLI,即使它刚刚安装。有没有办法解决这个问题或解决这个问题?

我的终端现在是这样的:

user@user-MacBook-Pro Project %  npm start              

> start
> expo start

This command requires Expo CLI.
Do you want to install it globally [Y/n]? y
Installing the package 'expo-cli'...
Expo CLI installed. You can run `expo --help` for instructions.
This command requires Expo CLI.
Do you want to install it globally [Y/n]? y
Installing the package 'expo-cli'...
Expo CLI installed. You can run `expo --help` for instructions.
This command requires Expo CLI.
Do you want to install it globally [Y/n]? y
Installing the package 'expo-cli'...
Expo CLI installed. You can run `expo --help` for instructions.
This command requires Expo CLI.
Do you want to install it globally [Y/n]? 

如果有任何建议,我将不胜感激,在此先感谢您!

【问题讨论】:

    标签: macos npm expo


    【解决方案1】:

    不要通过npm start安装Expo CLI,而是先尝试单独安装Expo CLI,然后运行npm start

    如果问题仍然存在,请尝试直接运行 expo start 而不是 npm start,看看它会给出什么结果。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-09
      • 2021-11-12
      • 1970-01-01
      • 2019-05-16
      • 2021-08-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多