microsoft / microsoft/rayfin

The Fabric UI “Getting Started” page suggests a Rayfin scaffold command that fails when copied and run from PowerShell

Open
#30 2 comments 0 reactions 1 assignee View on GitHub

@seanwat-msft is already working on this.

Since Jun 15, 2026.

bug issue-mapped triaged
Dominant language
No language data
Stars
610
Forks
62
Avg merge
1d 23h
Merged PRs (30d)
3

Description

What happened?

The Fabric UI “Getting Started” page suggests a Rayfin scaffold command that fails when copied and run from PowerShell:

npm create @microsoft/rayfin@latest -- "App_Name_Here" --workspace "Workspace Name Here"

The issue is that --workspace is interpreted by npm itself as npm’s workspace option, rather than being forwarded to the @microsoft/rayfin create CLI.

Adding an extra -- before --workspace fixes the command:

npm create @microsoft/rayfin@latest -- "App_Name_Here" -- --workspace "Workspace Name Here"

Where the command comes from

The command is shown in the Microsoft Fabric UI under the Rayfin app “Getting Started” instructions.

The UI currently suggests:

npm create @microsoft/rayfin@latest -- "App_Name_Here" --workspace "Workspace Name Here"

Expected behavior

The command copied from Fabric UI should scaffold the Rayfin app successfully.

Actual behavior

The command fails before the Rayfin CLI appears to receive the --workspace argument.

npm treats --workspace as an npm workspace flag and tries to locate a root package.json in the current directory.

Error excerpt:

warn init Missing package.json. Try with `--include-workspace-root`.
error code ENOENT
error syscall open
error path C:\Users\REDACTED\projetos\rayfin\package.json
error enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\Users\REDACTED\projetos\rayfin\package.json'

Workaround

Use an additional argument separator before the Rayfin-specific --workspace flag:

npm create @microsoft/rayfin@latest -- "App_Name_Here" -- --workspace "Workspace Name Here"

This works successfully in my environment.

Suggested fix

The Fabric UI should generate the command with an extra -- before the Rayfin CLI options:

This prevents npm from consuming --workspace as its own workspace option and forwards it to the Rayfin CLI.

Steps to reproduce
  1. Open PowerShell on Windows.
  2. Navigate to a folder that is not an npm workspace root and does not contain a package.json.
  3. Run the command suggested by Fabric UI: npm create @microsoft/rayfin@latest -- "App_Name_Here" --workspace "Workspace Name Here"
  4. Observe npm failing with Missing package.json / ENOENT.
Environment
  • OS: Windows
  • Shell: PowerShell
  • Node.js: v22.14.0
  • npm: 10.9.2
  • Current directory did not contain a root package.json
Logs or screenshots

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.