Skip to content

New @server app dependencies install error (ambiguous syntax error) #1215

@joeyfigaro

Description

@joeyfigaro

Describe the bug
Creating a new application using the @server template fails to take current package manager/version into account before trying to install dependencies.

? Choose template @server: TypeScript, Apollo (GraphQL), Express server
Ambiguous Syntax Error: Cannot find who to pick amongst the following alternatives:

  0. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--skip-builds]
  1. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--skip-builds]

To Reproduce
Steps to reproduce the behavior:

  1. mkdir repro-project && cd repro-project && yarn init -y
  2. yarn set version berry
  3. yarn create apollo-app my-app
  4. Choose @server template
  5. See error

Expected behavior
Install uses the appropriate set of flags based on current package manager being used.

Screenshots
Screen Shot 2021-06-26 at 10 56 53 AM

Desktop (please complete the following information):

  • OS: Mac OS 11.2.3
  • Browser: Brave
  • Version: Not sure what version we're talking about here

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser: N/A
  • Version: N/A

Additional context
Hopefully unnecessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions