【问题标题】:Can't install expo-cli to use react-native无法安装 expo-cli 以使用 react-native
【发布时间】:2020-06-24 19:34:09
【问题描述】:

我是 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


    【解决方案1】:

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

    npm install -g expo-cli
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-11
      • 2021-04-09
      • 1970-01-01
      • 2020-07-09
      • 2021-11-12
      • 1970-01-01
      相关资源
      最近更新 更多