首页 > 解决方案 > 无法安装 expo-cli 以使用 react-native

问题描述

我是 react-native 的新手,并尝试在 react-native 页面之后在 windows 10 中安装 expo-cli,id 使用了命令 npm init expo-cli,我有这个错误:

npm ERR! code E404
npm ERR! 404
npm ERR! 404  'create-expo-cli@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Miguelangel\AppData\Roaming\npm-cache\_logs\2020-06-24T11_01_08_933Z-debug.log
Install for [ 'create-expo-cli@latest' ] failed with code 1

标签: react-native

解决方案


没有create-expo-cli包裹。只是expo-cli

npm install -g expo-cli

推荐阅读