React native 试图将expo安装为;npm安装expo cli--全球;但是有很多错误

React native 试图将expo安装为;npm安装expo cli--全球;但是有很多错误,react-native,expo,React Native,Expo,尝试使用纱线安装也不起作用。。请任何人帮我做这件事 您的环境已设置为使用Node.js 10.16.1(x64)和npm C:\Windows\System32>npm安装expo cli--全局 警告不会对您的安装造成任何问题。如果没有错误,则安装正常。从昨天开始,我就遇到了同样的问题。我的解决方案是使用以下部分安装说明: 从中安装巧克力。如果使用windows,请以管理员身份在命令提示符下运行安装说明 接下来,如果已经安装了node.js,请运行以下行:choco-install-pyth

尝试使用纱线安装也不起作用。。请任何人帮我做这件事

您的环境已设置为使用Node.js 10.16.1(x64)和npm

C:\Windows\System32>npm安装expo cli--全局


警告
不会对您的安装造成任何问题。如果没有
错误
,则安装正常。

从昨天开始,我就遇到了同样的问题。我的解决方案是使用以下部分安装说明:

  • 从中安装巧克力。如果使用windows,请以管理员身份在命令提示符下运行安装说明
  • 接下来,如果已经安装了node.js,请运行以下行:
    choco-install-python2-jdk8
    。如果没有,请运行
    choco安装-y nodejs.install python2 jdk8
    。如果使用windows,请以管理员身份在命令提示符下运行
  • 运行此行:
    npm安装-g react native cli
  • 最后,运行您之前遇到的问题:
    npm安装-g expo cli
    。这对我有用,希望对你有用

如果您正在使用mac,请按照以下步骤操作

  • 转到终端的主页并运行此命令

    open.npmrc

  • 检查是否有下一行,然后删除下一行并保存文件

    前缀=/Users/yourname/.nvm/versions/node/v6.11.2

  • 然后跑

    npm安装expo cli--全局

    在我的新项目中举办世博会

  • 这些步骤解决了我在全局安装Expo CLI时遇到的问题。
    我希望这能有所帮助。

    尝试安装错误消息中列出的每个依赖项 =>npm安装-g@hapi/hapi

    访问hapi.dev


    更新@hapi依赖项我刚刚这么做了,它减少了th错误,但您需要找到自己的命令行上列出的所有错误

    ,但安装也没有完成。。我已经等了30多分钟了。。即使安装仍在运行…您是否能够解决此问题?
    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 hoek@4.2.1: 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 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 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 tarball tarball data for @expo/traveling-fastlane-darwin@1.9.11 (sha512-nvZSe2FI8cFcv27uosrmjIhfwbuClG+rbMe9OswsdhIVaJkYvF8LN8gIJ/Fsi2S+20GQizxjC11DFq++MOCm+w==) seems to be corrupted. Trying one more time.
    Terminate batch job (Y/N)? y