When running anoa init panciapps and choose Expo, I got this error. It appears that --name parameter had become required on Expo's latest release.
? Select project type you would like to use: Expo
⠋ Creating panciapps project.../usr/local/lib/node_modules/anoa-cli/node_modules/gluegun/build/index.js:13
throw up;
^
Error: Command failed: expo init panciapps -t blank --yarn
[22:18:52] --name: argument is required in non-interactive mode.
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:189:13)
at Pipe._handle.close (net.js:597:12)
Expected Behavior
The anoa project should be created without successfully without error.
Environment
Expo CLI 2.13.0 environment info:
System:
OS: MacOS Mojave
Shell: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Binaries:
Node: 10.15.3 - /usr/bin/node
npm: 6.9.0 - /usr/bin/npm
npmGlobalPackages:
expo-cli: 2.13.0
Possible Fix
I think it can be solved by adding --name argument here, and perhaps asking the display name first should be better.
|
await system.run(`expo init ${projectName} -t blank ${yarn ? '--yarn' : '--npm'}`) |
Reproducible Demo
anoa init panciapps then choose expo
When running
anoa init panciappsand choose Expo, I got this error. It appears that--nameparameter had become required on Expo's latest release.Expected Behavior
The anoa project should be created without successfully without error.
Environment
Expo CLI 2.13.0 environment info:
System:
OS: MacOS Mojave
Shell: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Binaries:
Node: 10.15.3 - /usr/bin/node
npm: 6.9.0 - /usr/bin/npm
npmGlobalPackages:
expo-cli: 2.13.0
Possible Fix
I think it can be solved by adding
--nameargument here, and perhaps asking the display name first should be better.anoa-cli/src/libs/ext.boilerplate/ext.boilerplate-expo.ts
Line 29 in 3953d23
Reproducible Demo
anoa init panciappsthen chooseexpo