Error: npm exited with non-zero code: 1

Hi guys.

Im facing the error (when I try to build an android app with turtle) a long time and till now I don’t know how to solve.

Anyone can help me?

  • What does /Users/alexmoret/.npm/_logs/2019-08-12T22_39_05_861Z-debug.log contain?
  • What are the lines around line 91 in /usr/local/lib/node_modules/turtle-cli/src/bin/setup/android/index.ts?

Hi @wodin

43923 silly postinstall cliui@4.1.0

43924 info lifecycle cliui@4.1.0~postinstall: cliui@4.1.0

43925 silly postinstall wrappy@1.0.2

43926 info lifecycle wrappy@1.0.2~postinstall: wrappy@1.0.2

43927 silly postinstall once@1.4.0

43928 info lifecycle once@1.4.0~postinstall: once@1.4.0

43929 silly postinstall bubble-stream-error@1.0.0

43930 info lifecycle bubble-stream-error@1.0.0~postinstall: bubble-stream-error@1.0.0

43931 silly postinstall end-of-stream@1.4.1

43932 info lifecycle end-of-stream@1.4.1~postinstall: end-of-stream@1.4.1

43933 silly postinstall duplexify@3.7.1

43934 info lifecycle duplexify@3.7.1~postinstall: duplexify@3.7.1

43935 silly postinstall stream-each@1.2.3

43936 info lifecycle stream-each@1.2.3~postinstall: stream-each@1.2.3

43937 silly postinstall pump@3.0.0

43938 info lifecycle pump@3.0.0~postinstall: pump@3.0.0

43939 silly postinstall get-stream@4.1.0

43940 info lifecycle get-stream@4.1.0~postinstall: get-stream@4.1.0

43941 silly postinstall execa@1.0.0

43942 info lifecycle execa@1.0.0~postinstall: execa@1.0.0

43943 silly postinstall default-gateway@4.2.0

43944 info lifecycle default-gateway@4.2.0~postinstall: default-gateway@4.2.0

43945 silly postinstall internal-ip@4.3.0

43946 info lifecycle internal-ip@4.3.0~postinstall: internal-ip@4.3.0

43947 silly postinstall os-locale@3.1.0

43948 info lifecycle os-locale@3.1.0~postinstall: os-locale@3.1.0

43949 silly postinstall inflight@1.0.6

43950 info lifecycle inflight@1.0.6~postinstall: inflight@1.0.6

43951 silly postinstall glob@7.1.2

43952 info lifecycle glob@7.1.2~postinstall: glob@7.1.2

43953 silly postinstall glob@7.1.2

43954 info lifecycle glob@7.1.2~postinstall: glob@7.1.2

43955 silly postinstall glob@7.1.4

43956 info lifecycle glob@7.1.4~postinstall: glob@7.1.4

43957 silly postinstall babel-plugin-module-resolver@3.2.0

43958 info lifecycle babel-plugin-module-resolver@3.2.0~postinstall: babel-plugin-module-resolver@3.2.0

43959 silly postinstall babel-preset-expo@5.2.0

43960 info lifecycle babel-preset-expo@5.2.0~postinstall: babel-preset-expo@5.2.0

43961 silly postinstall globby@7.1.1

43962 info lifecycle globby@7.1.1~postinstall: globby@7.1.1

43963 silly postinstall globby@6.1.0

43964 info lifecycle globby@6.1.0~postinstall: globby@6.1.0

43965 silly postinstall globby@8.0.2

43966 info lifecycle globby@8.0.2~postinstall: globby@8.0.2

43967 silly postinstall react-dev-utils@7.0.5

43968 info lifecycle react-dev-utils@7.0.5~postinstall: react-dev-utils@7.0.5

43969 silly postinstall rimraf@2.6.3

43970 info lifecycle rimraf@2.6.3~postinstall: rimraf@2.6.3

43971 silly postinstall clean-webpack-plugin@1.0.1

43972 info lifecycle clean-webpack-plugin@1.0.1~postinstall: clean-webpack-plugin@1.0.1

43973 silly postinstall copy-concurrently@1.0.5

43974 info lifecycle copy-concurrently@1.0.5~postinstall: copy-concurrently@1.0.5

43975 silly postinstall del@3.0.0

43976 info lifecycle del@3.0.0~postinstall: del@3.0.0

43977 silly postinstall move-concurrently@1.0.1

43978 info lifecycle move-concurrently@1.0.1~postinstall: move-concurrently@1.0.1

43979 silly postinstall workbox-build@3.6.3

43980 info lifecycle workbox-build@3.6.3~postinstall: workbox-build@3.6.3

43981 silly postinstall workbox-webpack-plugin@3.6.3

43982 info lifecycle workbox-webpack-plugin@3.6.3~postinstall: workbox-webpack-plugin@3.6.3

43983 silly postinstall pump@3.0.0

43984 info lifecycle pump@3.0.0~postinstall: pump@3.0.0

43985 silly postinstall glob@6.0.4

43986 info lifecycle glob@6.0.4~postinstall: glob@6.0.4

43987 silly postinstall rimraf@2.4.5

43988 info lifecycle rimraf@2.4.5~postinstall: rimraf@2.4.5

43989 silly postinstall mv@2.1.1

43990 info lifecycle mv@2.1.1~postinstall: mv@2.1.1

43991 silly postinstall @expo/bunyan@3.0.2

43992 info lifecycle @expo/bunyan@3.0.2~postinstall: @expo/bunyan@3.0.2

43993 silly postinstall pump@3.0.0

43994 info lifecycle pump@3.0.0~postinstall: pump@3.0.0

43995 silly postinstall get-stream@5.1.0

43996 info lifecycle get-stream@5.1.0~postinstall: get-stream@5.1.0

43997 silly postinstall cacheable-request@6.1.0

43998 info lifecycle cacheable-request@6.1.0~postinstall: cacheable-request@6.1.0

43999 silly postinstall got@9.6.0

44000 info lifecycle got@9.6.0~postinstall: got@9.6.0

44001 silly postinstall package-json@6.5.0

44002 info lifecycle package-json@6.5.0~postinstall: package-json@6.5.0

44003 silly postinstall simple-get@2.8.1

44004 info lifecycle simple-get@2.8.1~postinstall: simple-get@2.8.1

44005 silly postinstall pump@2.0.1

44006 info lifecycle pump@2.0.1~postinstall: pump@2.0.1

44007 silly postinstall pumpify@1.5.1

44008 info lifecycle pumpify@1.5.1~postinstall: pumpify@1.5.1

44009 silly postinstall simple-get@3.0.3

44010 info lifecycle simple-get@3.0.3~postinstall: simple-get@3.0.3

44011 silly postinstall pump@1.0.3

44012 info lifecycle pump@1.0.3~postinstall: pump@1.0.3

44013 silly postinstall write@1.0.3

44014 info lifecycle write@1.0.3~postinstall: write@1.0.3

44015 silly postinstall flat-cache@2.0.1

44016 info lifecycle flat-cache@2.0.1~postinstall: flat-cache@2.0.1

44017 silly postinstall file-entry-cache@5.0.1

44018 info lifecycle file-entry-cache@5.0.1~postinstall: file-entry-cache@5.0.1

44019 silly postinstall write-file-atomic@2.4.3

44020 info lifecycle write-file-atomic@2.4.3~postinstall: write-file-atomic@2.4.3

44021 silly postinstall @expo/json-file@8.1.10

44022 info lifecycle @expo/json-file@8.1.10~postinstall: @expo/json-file@8.1.10

44023 silly postinstall @expo/config@2.1.3

44024 info lifecycle @expo/config@2.1.3~postinstall: @expo/config@2.1.3

44025 silly postinstall ws@3.3.3

44026 info lifecycle ws@3.3.3~postinstall: ws@3.3.3

44027 silly postinstall subscriptions-transport-ws@0.9.8

44028 info lifecycle subscriptions-transport-ws@0.9.8~postinstall: subscriptions-transport-ws@0.9.8

44029 silly postinstall xmlbuilder@8.2.2

44030 info lifecycle xmlbuilder@8.2.2~postinstall: xmlbuilder@8.2.2

44031 silly postinstall xmldom@0.1.27

44032 info lifecycle xmldom@0.1.27~postinstall: xmldom@0.1.27

44033 silly postinstall plist@2.1.0

44034 info lifecycle plist@2.1.0~postinstall: plist@2.1.0

44035 silly postinstall xregexp@4.0.0

44036 info lifecycle xregexp@4.0.0~postinstall: xregexp@4.0.0

44037 silly postinstall decamelize@2.0.0

44038 info lifecycle decamelize@2.0.0~postinstall: decamelize@2.0.0

44039 silly postinstall xtend@4.0.2

44040 info lifecycle xtend@4.0.2~postinstall: xtend@4.0.2

44041 silly postinstall stream-http@2.8.3

44042 info lifecycle stream-http@2.8.3~postinstall: stream-http@2.8.3

44043 silly postinstall node-libs-browser@2.2.1

44044 info lifecycle node-libs-browser@2.2.1~postinstall: node-libs-browser@2.2.1

44045 silly postinstall tar-stream@1.6.2

44046 info lifecycle tar-stream@1.6.2~postinstall: tar-stream@1.6.2

44047 silly postinstall tar-fs@1.16.3

44048 info lifecycle tar-fs@1.16.3~postinstall: tar-fs@1.16.3

44049 silly postinstall prebuild-install@5.3.0

44050 info lifecycle prebuild-install@5.3.0~postinstall: prebuild-install@5.3.0

44051 silly postinstall iltorb@2.4.3

44052 info lifecycle iltorb@2.4.3~postinstall: iltorb@2.4.3

44053 silly postinstall brotli-webpack-plugin@1.1.0

44054 info lifecycle brotli-webpack-plugin@1.1.0~postinstall: brotli-webpack-plugin@1.1.0

44055 silly postinstall through2@2.0.5

44056 info lifecycle through2@2.0.5~postinstall: through2@2.0.5

44057 silly postinstall mississippi@3.0.0

44058 info lifecycle mississippi@3.0.0~postinstall: mississippi@3.0.0

44059 silly postinstall mississippi@2.0.0

44060 info lifecycle mississippi@2.0.0~postinstall: mississippi@2.0.0

44061 silly postinstall y18n@4.0.0

44062 info lifecycle y18n@4.0.0~postinstall: y18n@4.0.0

44063 silly postinstall cacache@10.0.4

44064 info lifecycle cacache@10.0.4~postinstall: cacache@10.0.4

44065 silly postinstall uglifyjs-webpack-plugin@1.3.0

44066 info lifecycle uglifyjs-webpack-plugin@1.3.0~postinstall: uglifyjs-webpack-plugin@1.3.0

44067 silly postinstall webpack@4.24.0

44068 info lifecycle webpack@4.24.0~postinstall: webpack@4.24.0

44069 silly postinstall yargs@12.0.2

44070 info lifecycle yargs@12.0.2~postinstall: yargs@12.0.2

44071 silly postinstall webpack-dev-server@3.2.0

44072 info lifecycle webpack-dev-server@3.2.0~postinstall: webpack-dev-server@3.2.0

44073 silly postinstall yallist@3.0.3

44074 info lifecycle yallist@3.0.3~postinstall: yallist@3.0.3

44075 silly postinstall lru-cache@5.1.1

44076 info lifecycle lru-cache@5.1.1~postinstall: lru-cache@5.1.1

44077 silly postinstall cacache@11.3.3

44078 info lifecycle cacache@11.3.3~postinstall: cacache@11.3.3

44079 silly postinstall compression-webpack-plugin@2.0.0

44080 info lifecycle compression-webpack-plugin@2.0.0~postinstall: compression-webpack-plugin@2.0.0

44081 silly postinstall copy-webpack-plugin@5.0.4

44082 info lifecycle copy-webpack-plugin@5.0.4~postinstall: copy-webpack-plugin@5.0.4

44083 silly postinstall make-fetch-happen@4.0.2

44084 info lifecycle make-fetch-happen@4.0.2~postinstall: make-fetch-happen@4.0.2

44085 silly postinstall npm-registry-fetch@3.9.1

44086 info lifecycle npm-registry-fetch@3.9.1~postinstall: npm-registry-fetch@3.9.1

44087 silly postinstall cacache@12.0.2

44088 info lifecycle cacache@12.0.2~postinstall: cacache@12.0.2

44089 silly postinstall terser-webpack-plugin@1.4.1

44090 info lifecycle terser-webpack-plugin@1.4.1~postinstall: terser-webpack-plugin@1.4.1

44091 silly postinstall minipass@2.3.5

44092 info lifecycle minipass@2.3.5~postinstall: minipass@2.3.5

44093 silly postinstall fs-minipass@1.2.6

44094 info lifecycle fs-minipass@1.2.6~postinstall: fs-minipass@1.2.6

44095 silly postinstall minizlib@1.2.1

44096 info lifecycle minizlib@1.2.1~postinstall: minizlib@1.2.1

44097 silly postinstall tar@4.4.10

44098 info lifecycle tar@4.4.10~postinstall: tar@4.4.10

44099 silly postinstall pacote@9.3.0

44100 info lifecycle pacote@9.3.0~postinstall: pacote@9.3.0

44101 silly postinstall tar@4.4.10

44102 info lifecycle tar@4.4.10~postinstall: tar@4.4.10

44103 silly postinstall sharp@0.22.1

44104 info lifecycle sharp@0.22.1~postinstall: sharp@0.22.1

44105 silly postinstall tar@4.4.6

44106 info lifecycle tar@4.4.6~postinstall: tar@4.4.6

44107 silly postinstall yargs-parser@11.1.1

44108 info lifecycle yargs-parser@11.1.1~postinstall: yargs-parser@11.1.1

44109 silly postinstall is-fullwidth-code-point@2.0.0

44110 info lifecycle is-fullwidth-code-point@2.0.0~postinstall: is-fullwidth-code-point@2.0.0

44111 silly postinstall p-try@2.2.0

44112 info lifecycle p-try@2.2.0~postinstall: p-try@2.2.0

44113 silly postinstall p-limit@2.2.0

44114 info lifecycle p-limit@2.2.0~postinstall: p-limit@2.2.0

44115 silly postinstall p-locate@3.0.0

44116 info lifecycle p-locate@3.0.0~postinstall: p-locate@3.0.0

44117 silly postinstall locate-path@3.0.0

44118 info lifecycle locate-path@3.0.0~postinstall: locate-path@3.0.0

44119 silly postinstall find-up@3.0.0

44120 info lifecycle find-up@3.0.0~postinstall: find-up@3.0.0

44121 silly postinstall string-width@2.1.1

44122 info lifecycle string-width@2.1.1~postinstall: string-width@2.1.1

44123 silly postinstall yargs@12.0.5

44124 info lifecycle yargs@12.0.5~postinstall: yargs@12.0.5

44125 silly postinstall sharp-cli@1.10.0

44126 info lifecycle sharp-cli@1.10.0~postinstall: sharp-cli@1.10.0

44127 silly postinstall @expo/image-utils@0.2.5

44128 info lifecycle @expo/image-utils@0.2.5~postinstall: @expo/image-utils@0.2.5

44129 silly postinstall @expo/webpack-pwa-manifest-plugin@1.2.3

44130 info lifecycle @expo/webpack-pwa-manifest-plugin@1.2.3~postinstall: @expo/webpack-pwa-manifest-plugin@1.2.3

44131 silly postinstall @expo/webpack-config@0.5.19

44132 info lifecycle @expo/webpack-config@0.5.19~postinstall: @expo/webpack-config@0.5.19

44133 silly postinstall @expo/xdl@55.0.14

44134 info lifecycle @expo/xdl@55.0.14~postinstall: @expo/xdl@55.0.14

44135 silly postinstall zen-observable@0.8.14

44136 info lifecycle zen-observable@0.8.14~postinstall: zen-observable@0.8.14

44137 silly postinstall zen-observable-ts@0.8.19

44138 info lifecycle zen-observable-ts@0.8.19~postinstall: zen-observable-ts@0.8.19

44139 silly postinstall apollo-link@1.2.1

44140 info lifecycle apollo-link@1.2.1~postinstall: apollo-link@1.2.1

44141 silly postinstall graphql-tools@3.0.0

44142 info lifecycle graphql-tools@3.0.0~postinstall: graphql-tools@3.0.0

44143 silly postinstall @expo/dev-tools@0.5.45

44144 info lifecycle @expo/dev-tools@0.5.45~postinstall: @expo/dev-tools@0.5.45

44145 silly postinstall babel-core@7.0.0-bridge.0

44146 info lifecycle babel-core@7.0.0-bridge.0~postinstall: babel-core@7.0.0-bridge.0

44147 silly postinstall eslint@5.16.0

44148 info lifecycle eslint@5.16.0~postinstall: eslint@5.16.0

44149 silly postinstall eslint-config-universe@2.0.0-alpha.0

44150 info lifecycle eslint-config-universe@2.0.0-alpha.0~postinstall: eslint-config-universe@2.0.0-alpha.0

44151 silly postinstall expo-cli@2.21.2

44152 info lifecycle expo-cli@2.21.2~postinstall: expo-cli@2.21.2

44153 silly postinstall expo-yarn-workspaces@1.2.0

44154 info lifecycle expo-yarn-workspaces@1.2.0~postinstall: expo-yarn-workspaces@1.2.0

44155 silly postinstall prettier@1.18.2

44156 info lifecycle prettier@1.18.2~postinstall: prettier@1.18.2

44157 silly postinstall react-native-unimodules@0.4.1-alpha.0

44158 info lifecycle react-native-unimodules@0.4.1-alpha.0~postinstall: react-native-unimodules@0.4.1-alpha.0

44159 verbose lifecycle react-native-unimodules@0.4.1-alpha.0~postinstall: unsafe-perm in lifecycle true

44160 verbose lifecycle react-native-unimodules@0.4.1-alpha.0~postinstall: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/alexmoret/.turtle/workingdir/android/sdk33/node_modules/react-native-unimodules/node_modules/.bin:/Users/alexmoret/.turtle/workingdir/android/sdk33/node_modules/.bin:/Users/alexmoret/.turtle/androidDependencies/sdk/platform-tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools/bin:/Users/alexmoret/.turtle/androidDependencies/sdk/build-tools/28.0.3:/Users/alexmoret/.turtle/androidDependencies/sdk/platform-tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools/bin:/Users/alexmoret/.turtle/androidDependencies/sdk/build-tools/28.0.3:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands

44161 verbose lifecycle react-native-unimodules@0.4.1-alpha.0~postinstall: CWD: /Users/alexmoret/.turtle/workingdir/android/sdk33/node_modules/react-native-unimodules

44162 silly lifecycle react-native-unimodules@0.4.1-alpha.0~postinstall: Args: [ ‘-c’, ‘node ./scripts/postinstall.js’ ]

44163 silly lifecycle react-native-unimodules@0.4.1-alpha.0~postinstall: Returned: code: 0 signal: null

44164 timing action:postinstall Completed in 489ms

44165 verbose unlock done using /Users/alexmoret/.npm/_locks/staging-23d66b5dd24e8e3f.lock for /Users/alexmoret/.turtle/workingdir/android/sdk33/node_modules/.staging

44166 timing stage:executeActions Completed in 41843ms

44167 timing stage:rollbackFailedOptional Completed in 2604ms

44168 silly install runPostinstallTopLevelLifecycles

44169 silly build @expo/expo@1.4.0

44170 info linkStuff @expo/expo@1.4.0

44171 silly linkStuff @expo/expo@1.4.0 has /Users/alexmoret/.turtle/workingdir as its parent node_modules

44172 silly install @expo/expo@1.4.0

44173 info lifecycle @expo/expo@1.4.0~install: @expo/expo@1.4.0

44174 silly postinstall @expo/expo@1.4.0

44175 info lifecycle @expo/expo@1.4.0~postinstall: @expo/expo@1.4.0

44176 verbose lifecycle @expo/expo@1.4.0~postinstall: unsafe-perm in lifecycle true

44177 verbose lifecycle @expo/expo@1.4.0~postinstall: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/alexmoret/.turtle/workingdir/android/sdk33/node_modules/.bin:/Users/alexmoret/.turtle/androidDependencies/sdk/platform-tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools/bin:/Users/alexmoret/.turtle/androidDependencies/sdk/build-tools/28.0.3:/Users/alexmoret/.turtle/androidDependencies/sdk/platform-tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools/bin:/Users/alexmoret/.turtle/androidDependencies/sdk/build-tools/28.0.3:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands

44178 verbose lifecycle @expo/expo@1.4.0~postinstall: CWD: /Users/alexmoret/.turtle/workingdir/android/sdk33

44179 silly lifecycle @expo/expo@1.4.0~postinstall: Args: [ ‘-c’,

44179 silly lifecycle ‘expo-yarn-workspaces check-workspace-dependencies && rm -rf node_modules/babel-jest/node_modules/babel-core’ ]

44180 silly lifecycle @expo/expo@1.4.0~postinstall: Returned: code: 0 signal: null

44181 silly prepublish @expo/expo@1.4.0

44182 info lifecycle @expo/expo@1.4.0~prepublish: @expo/expo@1.4.0

44183 info lifecycle @expo/expo@1.4.0~prepare: @expo/expo@1.4.0

44184 verbose lifecycle @expo/expo@1.4.0~prepare: unsafe-perm in lifecycle true

44185 verbose lifecycle @expo/expo@1.4.0~prepare: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/alexmoret/.turtle/workingdir/android/sdk33/node_modules/.bin:/Users/alexmoret/.turtle/androidDependencies/sdk/platform-tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools/bin:/Users/alexmoret/.turtle/androidDependencies/sdk/build-tools/28.0.3:/Users/alexmoret/.turtle/androidDependencies/sdk/platform-tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools:/Users/alexmoret/.turtle/androidDependencies/sdk/tools/bin:/Users/alexmoret/.turtle/androidDependencies/sdk/build-tools/28.0.3:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands

44186 verbose lifecycle @expo/expo@1.4.0~prepare: CWD: /Users/alexmoret/.turtle/workingdir/android/sdk33

44187 silly lifecycle @expo/expo@1.4.0~prepare: Args: [ ‘-c’, ‘yarn workspace expo prepare’ ]

44188 info lifecycle @expo/expo@1.4.0~prepare: Failed to exec prepare script

44189 verbose stack Error: @expo/expo@1.4.0 prepare: yarn workspace expo prepare

44189 verbose stack spawn ENOENT

44189 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)

44189 verbose stack at ChildProcess.emit (events.js:198:13)

44189 verbose stack at maybeClose (internal/child_process.js:982:16)

44189 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

44190 verbose pkgid @expo/expo@1.4.0

44191 verbose cwd /Users/alexmoret/.turtle/workingdir/android/sdk33

44192 verbose Darwin 18.6.0

44193 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “install”

44194 verbose node v10.16.0

44195 verbose npm v6.10.2

44196 error file sh

44197 error code ELIFECYCLE

44198 error errno ENOENT

44199 error syscall spawn

44200 error @expo/expo@1.4.0 prepare: yarn workspace expo prepare

44200 error spawn ENOENT

44201 error Failed at the @expo/expo@1.4.0 prepare script.

44201 error This is probably not a problem with npm. There is likely additional logging output above.

44202 verbose exit [ 1, true ]

MacBook-Air-de-Alex:react-new-app alexmoret$

Also, what happens if you manually run yarn workspace expo prepare?

Hi @wodin

  1. What do you mean "the lines around 91 in /usr/local/lib/node_modules/turtle-cli/src/bin/setup/android/index.ts"?

  2. When I try run yarn workspace expo prepare I found:

MacBook-Air-de-Alex:react-new-app alexmoret$ yarn workspace expo prepare

-bash: yarn: command not found

MacBook-Air-de-Alex:react-new-app alexmoret$

Do i have to install something?

Best,

I mean open that file and fine line 91, then copy and paste a few lines above/below into a comment here. That line was mentioned in the error, so I want to see what the line contains (and maybe the code near line 91 too.)

It looks to me like something is trying to execute the yarn command and is failing, so maybe you should try installing it.

https://yarnpkg.com/

Hi @wodin

I need to install Homebrew to install yarn.
When I tried to install homebrew Im facing the following error:

Error downloading updates.

==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress

==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

xcode-select: error: invalid developer directory ‘/Library/Developer/CommandLineTools’

Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

Best,

Try this:

xcode-select --install

If you still get the same error after that, try uninstalling and reinstalling Xcode.

Also see this thread:

Also this:

Hi @wodin

Here is the answer of yarn workspace expo prepare command:

MacBook-Air-de-Alex:react-new-app alexmoret$ yarn workspace expo prepare

yarn workspace v1.17.3

error Cannot find the root of your workspace - are you sure you’re currently in a workspace?

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.

Hi @wodin

I just update expo-cli, run turtle and its generated an archive with extension .aab.

I found out that is an Android App Bundle, a new upload format.
I see that I have to upload a private key. How can I get this private key?


But, how can I update an apk previous app with this new format?

Hi @labmoonwalk

I’m glad you were able to build the .aab file. Now you’re getting to stuff I don’t know about :slight_smile: but read through this page and see if it helps:

https://docs.expo.io/versions/v34.0.0/distribution/uploading-apps/

I hope one of the Expo team members will correct/clarify anything below that needs correction/clarification:

As far as I know as long as the .aab has the same Application ID as the original .apk then when you upload the .aab it will replace the original .apk. I think the “package” option mentioned here is what is used for the Application ID.

I think that when you upload the .aab file to Google Play it is automatically converted into a set of .apk files for different types of phone (e.g. 32 bit vs. 64 bit etc.) so that the phone only has to download the relevant code. There is a tool called bundletool which you can use to do this yourself if you want to see the .apk files. But normally you shouldn’t need to worry about this.

This page has a lot more useful info about these .aab files:

https://developer.android.com/guide/app-bundle

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.