【问题标题】:React native expo cli installing error:404 Not Found - GET https://registry.npmjs.org/error-exReact native expo cli 安装错误:404 Not Found - GET https://registry.npmjs.org/error-ex
【发布时间】:2020-05-27 22:31:34
【问题描述】:

当我尝试使用 npm install -g expo-cli 全局安装 expo cli 时出现以下错误有人可以帮忙吗?

$ npm install -g expo-cli
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
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 request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated iltorb@2.4.5: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/traveling-fastlane-darwin@1.11.5 (node_modules\expo-cli\node_modules\@expo\traveling-fastlane-darwin):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/traveling-fastlane-darwin@1.11.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex
npm ERR! 404
npm ERR! 404  'error-ex@^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'parse-json'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Sanjeewa\AppData\Roaming\npm-cache\_logs\2020-02-12T09_09_52_890Z-debug.log


【问题讨论】:

  • npm 注册表中出现了一些错误。您可以在这里查看状态:status.npmjs.org,应该很快就会解决。不要安装其他软件包或使用其他注册表来修补它,你会搞砸的:)

标签: node.js react-native npm expo


【解决方案1】:

在您的终端中尝试此命令npm config set registry https://skimdb.npmjs.com/registry

【讨论】:

    【解决方案2】:

    不是你的错。 https://registry.npmjs.org/error-ex 已对所有人关闭或不再可用。

    现在安装它修复它:

    npm i https://github.com/Qix-/node-error-ex

    【讨论】:

      猜你喜欢
      • 2020-05-28
      • 2020-05-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-22
      • 2021-02-26
      • 1970-01-01
      相关资源
      最近更新 更多