react-native - 无法安装 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
解决方案
没有create-expo-cli
包裹。只是expo-cli
。
npm install -g expo-cli
推荐阅读
- python - 正在生成多个数据框和其他问题
- python - 按索引排序熊猫数据框,然后按字母顺序
- node.js - 在项目中隐藏 .env 文件
- java - 如何在tomcat 6中通过servlet名称获取servlet映射?
- mongodb - 在动态路由的情况下,getstaticprops 不能使用 getstaticpaths 中的参数?MongoDB
- javascript - 使用 JavaScript 将表单内的每个输入值乘以 7
- python - 使用 Pytorch 从自动编码器中提取隐藏特征
- angular - 带有 Keycloak 的 Angular 和 Spring Boot REST API 的 CORS 问题
- javascript - Bootbox 验证错误消息不会出现在 Firefox 中,但不会出现在 chrome 中
- python - Python 正则表达式 Findall 非贪婪