Microsoft Windows [Version 10.0.17134.829]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\HPSupport>npm install -g expo-cli
npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN deprecated joi@14.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated @babel/polyfill@7.4.4: ?? As of Babel 7.4.0, this
npm WARN deprecated package has been deprecated in favor of directly
npm WARN deprecated including core-js/stable (to polyfill ECMAScript
npm WARN deprecated features) and regenerator-runtime/runtime
npm WARN deprecated (needed to use transpiled generator functions):
npm WARN deprecated
npm WARN deprecated > import "core-js/stable";
npm WARN deprecated > import "regenerator-runtime/runtime";
npm WARN deprecated joi@11.4.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HPSupport\AppData\Roaming\npm-cache\_logs\2019-07-14T04_03_13_221Z-debug.log
C:\Users\HPSupport>
当我尝试使用“ npm install -g expo-cli”安装expo cli时 安装只是停留在诸如“提取rxjs”之类的东西上
是否可以通过离线安装程序离线安装 或解决此问题的任何方法。
我正在使用最新的节点版本-v10
我已经删除了64位节点并安装了32位节点,但是存在相同的问题, 尝试使用PowerShell时遇到相同的问题。
答案 0 :(得分:1)
好的,经过一番研究和发现的错误后,现在很明显这是npm的问题,所以我只安装了react-native-cli而不是expo-cli,就可以了。
感谢支持。
答案 1 :(得分:1)
npm install -g react-native-cli
react-native init AwesomeApp
cd AwesomeApp
npm start
答案 2 :(得分:0)
您检查了互联网连接吗?我有一个与此有时有关的问题。我所做的就是订阅更快的互联网,安装成功。
答案 3 :(得分:0)
这是一个npm错误
尝试使用纱线。
yarn global add expo-cli
我遇到了这个错误,纱线解决了。
此外,您还可以在此链接中找到许多有用的建议 https://github.com/expo/expo-cli/issues/590