Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

react-native - 如何在Windows 10中离线安装expo-cli(how to install expo-cli offline in windows 10)

 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 [email protected]: 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/[email protected]: ?? 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 [email protected]: 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 [email protected]: 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 [email protected]: 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 [email protected]: 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> 

when I try to install expo cli with "npm install -g expo-cli" Installing just stuck on something like "extracting rxjs"

(当我尝试使用“ npm install -g expo-cli”安装expo cli时,安装过程仅停留在“ extracting rxjs”之类的东西上)

Is there any way to install it offline with its offline installer or any solution to this problem.

(有什么方法可以使用其脱机安装程序将其脱机安装,也可以通过任何方法解决此问题。)

I am using the latest node version- v10

(我正在使用最新的节点版本-v10)

I have deleted node 64 bit and installed node 32 bit but the same problem, I have the same issue when trying to use PowerShell.

(我删除了节点64位并安装了节点32位,但是存在相同的问题,在尝试使用PowerShell时遇到相同的问题。)

  ask by The Destroyer translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Okay so after a bit of research and the error I got now it is clear that this is a problem from npm so I just installed react-native-cli instead of expo-cli and it worked.

(好吧,经过一番研究和发现的错误之后,现在很明显这是npm的问题,因此我只安装了react-native-cli而不是expo-cli即可。)

thanks for the support.

(感谢您的支持。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...