The Fabric UI “Getting Started” page suggests a Rayfin scaffold command that fails when copied and run from PowerShell
@seanwat-msft is already working on this.
Since Jun 15, 2026.
- 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
- Open PowerShell on Windows.
- Navigate to a folder that is not an npm workspace root and does not contain a
package.json. - Run the command suggested by Fabric UI:
npm create @microsoft/rayfin@latest -- "App_Name_Here" --workspace "Workspace Name Here" - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.