为什么我无法安装 expo cli?

Why am I unable to install expo cli?

我已经按照 Expo 网站上的文档安装了 NodeJs,git,watachmann,但是在安装 Expo cli 时我仍然遇到错误:

首先确保您使用的是 nodejs, which is currently 16.13.1. For that you can use the n 模块的推荐版本:

// if you haven't istalled before 
sudo npm install n -g 
//to have the latest stable version
sudo n stable

然后使用 npm 删除所有预览安装并重新开始。对于 expo-cli :

sudo npm uninstall --global expo-cli
sudo npm install --global expo-cli