Skip to content

fix(add): the playground names the token its install needs - #1234

Merged
antoinetoussaint-byte merged 1 commit into
mainfrom
solution-playground-token
Oct 29, 2026
Merged

antoinetoussaint-byte merged 1 commit into
mainfrom
solution-playground-token

Conversation

@antoinetoussaint-byte

Copy link
Copy Markdown
Contributor

The first thing someone else hits on a clean machine.

The page's @codefly-dev/* kits are published to GitHub Packages and the remote's .npmrc reads ${NODE_AUTH_TOKEN}, so make playground died on:

npm error code E401
npm error 401 Unauthorized - unauthenticated: User cannot be authenticated with the token provided.

That names neither the variable, nor the scope it needs, nor the command that sets it. wiki's playground README states it as a prerequisite; the scaffolded one said nothing.

What changed

The remote target refuses before npm runs:

NODE_AUTH_TOKEN is not set. The page's kits are published to GitHub
Packages, so the install needs a token with read:packages:

    export NODE_AUTH_TOKEN=$(gh auth token)

Without it npm answers 401 Unauthorized and says nothing about why.

and the scaffolded README carries it above make playground.

Nothing about the install itself changed — only whether the person is told what it needs.

Docs updated: docs/commands.md.

🤖 Generated with Claude Code

The page's kits are published to GitHub Packages and the remote's
.npmrc reads ${NODE_AUTH_TOKEN}, so a newcomer's first `make playground`
died on:

    npm error code E401
    npm error 401 Unauthorized - unauthenticated: User cannot be
    authenticated with the token provided.

which names neither the variable nor the scope nor the command that
sets it. wiki's playground README states it; the scaffolded one said
nothing.

The remote target now refuses before npm runs, printing the one command
to run, and the README carries it as a prerequisite above `make
playground`. Nothing about the install changed — only whether the person
is told what it needs.

Found by asking what someone else would hit on a clean machine, which is
the whole point of scaffolding the playground at all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@antoinetoussaint-byte
antoinetoussaint-byte added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit c2d187c Oct 29, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant