Skip to content

expo init missing parameter #22

Description

@gmochid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions