Создать приложение ExpoGo : Отказано в подключении к Nexus RM

Я новичок в Интернете и вообще в разработке, и я столкнулся со следующей ошибкой, в которой, надеюсь, вы могли бы мне помочь.

  1. Я обновил Expo SDK до последней версии 45.
  2. Я проверил все зависимости и устаревшую версию и т.д.
  3. Я выполнил все команды в соответствии с инструкциями и попытался
    3.1) Запустить приложение локально со следующей ошибкой.
         Error: C:\Users\sp\AppData\Local\Android\Sdk/platform-tools/adb exited with non-zero code: 1
      at ChildProcess.completionListener (C:\Users\sp\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:65:13)
      at Object.onceWrapper (node:events:642:26)
      at ChildProcess.emit (node:events:527:28)
      at ChildProcess.cp.emit (C:\Users\sp\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:34:29)
      at maybeClose (node:internal/child_process:1092:16)
      at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
      ...
      at spawnAsync (C:\Users\sp\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:26:19)
      at getAdbOutputAsync (C:\Users\sp\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:303:26)
      at getAttachedDevicesAsync (C:\Users\sp\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:206:18)
      at Timeout._onTimeout (C:\Users\sp\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:163:29)

3.2) При сборке с помощью, например, eas build -p ios --profile development появляется следующая ошибка

      [stderr] error An unexpected error occurred: "http://localhost:8081/repository/npm-group/@expo%2fsamples: connect ECONNREFUSED 127.0.0.1:8081".

info If you think this is a bug, please open a bug report with the information provided in "/Users/expo/workingdir/build/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn exited with non-zero code: 1

Примечание. Я создал секрет NPM_TOKEN и добавил файл «.npmrc» в свой корневой каталог, включая _auth и информацию реестра для подключения к моему nexus rm.

Любые идеи, что мне не хватает?

Мой фактический package.json выглядит следующим образом

      {
 "scripts": {
   "set-registry": "npm set registry http://localhost:8081/repository/npm-group/",
   "iwr": "npm install --registry http://localhost:8081/repository/npm-group/",
   "set-default-registry": "npm set registry https://registry.npmjs.org",
   "yarn": "npx yarn",
   "publish": "expo publish",
   "start": "expo start --dev-client",
   "upgrade": "expo upgrade",
   "android": "expo run:android",
   "ios": "expo run:ios",
   "web": "expo start --web",
   "test": "jest --watchAll",
   "login": "expo login",
   "logout": "expo logout",
   "whoami": "expo whoami"
 },
 "jest": {
   "preset": "jest-expo"
 },
 "publishConfig": {
   "registry": "http://localhost:8081/repository/npm/"
 },
 "dependencies": {
   "@expo/samples": "~3.0.3",
   "@expo/vector-icons": "^13.0.0",
   "@ptomasroos/react-native-multi-slider": "^2.2.2",
   "@react-native-async-storage/async-storage": "~1.17.3",
   "@react-native-community/checkbox": "^0.3.0",
   "@react-native-community/datetimepicker": "6.1.2",
   "@react-native-community/toolbar-android": "^0.1.0-rc.1",
   "@react-native-community/viewpager": "5.0.11",
   "@react-navigation/web": "^1.0.0-alpha.9",
   "check-peer-dependencies": "^4.1.0",
   "eslint-plugin-react-hooks": "^2.5.0",
   "expo": "^45.0.4",
   "expo-app-auth": "~11.1.0",
   "expo-asset": "~8.5.0",
   "expo-av": "~11.2.3",
   "expo-camera": "~12.2.0",
   "expo-constants": "~13.1.1",
   "expo-dev-client": "~0.9.6",
   "expo-device": "~4.2.0",
   "expo-facebook": "~12.2.0",
   "expo-file-system": "~14.0.0",
   "expo-font": "~10.1.0",
   "expo-google-app-auth": "~8.3.0",
   "expo-image-picker": "~13.1.1",
   "expo-linear-gradient": "~11.3.0",
   "expo-linking": "~3.1.0",
   "expo-localization": "~13.0.0",
   "expo-location": "~14.2.2",
   "expo-mail-composer": "~11.2.0",
   "expo-permissions": "~13.2.0",
   "expo-screen-orientation": "~4.2.0",
   "expo-secure-store": "~11.2.0",
   "expo-splash-screen": "~0.15.1",
   "expo-status-bar": "~1.3.0",
   "expo-task-manager": "~10.2.1",
   "expo-updates": "~0.13.1",
   "expo-web-browser": "~10.2.0",
   "firebase": "8.2.3",
   "i18n-js": "3.5.1",
   "jest": "^26.6.3",
   "lodash": "^4.17.20",
   "moment": "^2.25.3",
   "moment-timezone": "^0.5.32",
   "prop-types": "^15.7.2",
   "pt-web-app-common": "0.0.775",
   "react": "17.0.2",
   "react-devtools": "^3.6.3",
   "react-dom": "17.0.2",
   "react-native": "0.68.2",
   "react-native-autocomplete-input": "^4.2.0",
   "react-native-calendars": "^1.264.0",
   "react-native-gesture-handler": "~2.2.1",
   "react-native-gridview": "^0.1.2",
   "react-native-image-gallery": "^2.1.5",
   "react-native-image-modal": "^1.0.6",
   "react-native-keyboard-aware-scroll-view": "^0.9.1",
   "react-native-map-clustering": "^3.3.9",
   "react-native-maps": "0.30.2",
   "react-native-modal": "^11.5.6",
   "react-native-netinfo": "^1.1.0",
   "react-native-paper": "^3.6.0",
   "react-native-picker-select": "^7.0.0",
   "react-native-ratings": "^6.5.0",
   "react-native-reanimated": "~2.8.0",
   "react-native-responsive-grid": "^0.41.993",
   "react-native-safe-area-context": "4.2.4",
   "react-native-safe-area-view": "^1.1.1",
   "react-native-screens": "~3.11.1",
   "react-native-svg": "12.3.0",
   "react-native-svg-transformer": "^0.14.3",
   "react-native-swipe-gestures": "^1.0.5",
   "react-native-swipe-list-view": "^2.5.0",
   "react-native-vector-icons": "^6.6.0",
   "react-native-web": "0.17.7",
   "react-native-webview": "11.18.1",
   "react-navigation": "^3.12.0",
   "react-redux": "5.1.2",
   "redux": "^4.0.4",
   "sharp-cli": "^1.15.0"
 },
 "devDependencies": {
   "@babel/core": "^7.12.9",
   "babel-eslint": "^10.0.3",
   "babel-preset-expo": "~9.1.0",
   "eslint": "^6.6.0",
   "eslint-config-airbnb": "^18.0.1",
   "eslint-plugin-import": "^2.18.2",
   "eslint-plugin-jsx-a11y": "^6.2.3",
   "eslint-plugin-react": "^7.30.0",
   "jest-expo": "^45.0.0",
   "yarn-upgrade-all": "^0.7.1"
 },
 "private": true,
 "name": "pt-app",
 "version": "1.0.5"
}

Как уже упоминалось, я совершенно новичок в веб-разработке, выставках и любых подобных формах, и проект был просто скопирован из предыдущего источника, поэтому мне также пришлось настроить env после клонирования, поэтому простите меня, если я что-то здесь упустил. Спасибо и ценю вашу помощь! ! !

0 ответов

Другие вопросы по тегам