Skip to content

bug: CLI Init Commands don't Work OOTB in PowerShell #881

@erin-allison

Description

@erin-allison

Provide environment information

System:

  • OS: Windows 11 10.0.22621
  • CPU: (16) x64 AMD Ryzen 7 7800X3D 8-Core Processor
  • Memory: 27.07 GB / 63.15 GB

Binaries:

  • Node: 18.19.0 - C:\Program Files\nodejs\node.EXE
  • npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
  • pnpm: 8.15.1 - ~\AppData\Roaming\npm\pnpm.CMD

Describe the bug

In PowerShell, a token beginning with the '@' character is used for splatting, and is invalid for use when calling a standard executable.

For a (trivially) better DX, the package name in that command should be enclosed in quotes so that the command doesn't need to be edited before execution in PowerShell.

image

image

Reproduction repo

n/a

To reproduce

  1. Go to Framework Setup and select a framework
  2. Copy and paste the "Run the CLI 'init' command..." step into a PowerShell window

Additional information

No response

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