Почему я не могу установить native-base с npm в моем реактивном проекте? - PullRequest
1 голос
/ 14 мая 2019
npm install native-base --save

У меня есть эта ошибка:

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENETUNREACH: request to https://registry.npmjs.org/react-native-keyboard-aware-scroll-view failed, reason: connect ENETUNREACH 104.16.22.35:443
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! path /Users/.../node_modules/react-native-safe-area-view
npm ERR! code EISGIT

npm ERR! git /Users/.../node_modules/react-native-safe-area-view: Appears to be a git repo or submodule.
npm ERR! git     /Users/.../node_modules/react-native-safe-area-view
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/.../.npm/_logs/2019-05-14T10_13_00_776Z-debug.log

1 Ответ

0 голосов
/ 14 мая 2019

Эта проблема обычно возникает иногда, в качестве временного исправления, выполните следующие действия:

  1. удалите эту папку в каталоге node_modules

    C:\Users\...\node_modules\react-native-safe
        -area-view
    
  2. Установите пакет, который вы пытаетесь добавить снова.

    npm install native-base --save
    

Это должно решить проблему.

...