React native expo cli: ошибка установки: 404 Not Found - GET https://registry.npmjs.org/error-ex - PullRequest
1 голос
/ 12 февраля 2020

Ниже произошла ошибка, когда я попытался установить expo cli глобально, используя npm install -g 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


Ответы [ 2 ]

0 голосов
/ 13 февраля 2020

попробуйте эту команду в вашем терминале npm config set registry https://skimdb.npmjs.com/registry

0 голосов
/ 12 февраля 2020

Не твоя вина. https://registry.npmjs.org/error-ex недоступен для всех или больше недоступен.

Сейчас это исправлено:

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

...