尝试使用yarn进行安装也无法正常工作。请任何人帮助我。
您的环境已设置为使用Node.js 10.16.1(x64)和npm。
C:\ Windows \ System32> npm install expo-cli --global
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
答案 0 :(得分:0)
Warning
不会对您的安装造成任何问题。如果没有error
,则表示已正常安装。
答案 1 :(得分:0)
自昨天以来,我遇到了同样的问题。我的解决方案是使用React Native CLI Quickstart的一些安装说明:
choco install install python2 jdk8
。如果不是,请运行choco install -y nodejs.install python2 jdk8
。如果使用Windows,请以管理员身份从命令提示符运行。npm install -g react-native-cli
npm install -g expo-cli
。这对我有用,希望对您有用。答案 2 :(得分:0)
如果您使用的是Mac,请按照以下步骤操作
转到终端的主页并运行此cmd
打开.npmrc
检查是否有下一行,然后删除下一行并保存文件
前缀= /用户/您的姓名/.nvm/版本/节点/v6.11.2
然后运行
npm install expo-cli --global
expo init my-new-project
这些步骤解决了我在全球范围内安装Expo CLI的问题。 希望有帮助。
答案 3 :(得分:0)
尝试安装该错误消息中列出的每个依赖项 => npm install -g @ hapi / hapi
访问hapi.dev
更新@hapi依赖项,我现在才这样做,它减少了错误,但是您将需要查找自己的命令行中列出的所有错误