【发布时间】: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]?
如果有任何建议,我将不胜感激,在此先感谢您!
【问题讨论】: