如何在Windows 10中安装离线Expo-CLI



Microsoft Windows [Version 10.0.17134.829]
(c) 2018 Microsoft Corporation. All rights reserved.
C:UsersHPSupport>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:UsersHPSupportAppDataRoamingnpm-cache_logs2019-07-14T04_03_13_221Z-debug.log
C:UsersHPSupport>

尝试使用" NPM install -G expo -cli"安装EXPO CLI时安装只粘在"提取RXJS"

之类的东西上

是否有任何方法可以使用其离线安装程序离线安装或解决此问题的任何解决方案。

我正在使用最新的节点版本-V10

我已删除了节点64位并安装了节点32位,但同样的问题,尝试使用PowerShell时,我也有同样的问题。

好吧,所以经过一些研究和我现在遇到的错误,很明显,这是NPM的问题工作。

感谢您的支持。

npm install -g react-native-cli
react-native init AwesomeApp
cd AwesomeApp
npm start

这是NPM错误

尝试使用纱线。

yarn global add expo-cli

我面临此错误并纱线解决了。

您还可以在此链接中找到许多有用的建议https://github.com/expo/expo-cli/issues/590

您是否检查了Internet连接?有时我有一个与此有关的问题。我要做的就是订阅更快的互联网,并且安装成功。