diff --git a/apps/www/lib/rehype-npm-command.ts b/apps/www/lib/rehype-npm-command.ts index 68157b66e4c..2910a4b8a6c 100644 --- a/apps/www/lib/rehype-npm-command.ts +++ b/apps/www/lib/rehype-npm-command.ts @@ -51,7 +51,10 @@ export function rehypeNpmCommand() { ) { const npmCommand = node.properties?.["__rawString__"] node.properties["__npmCommand__"] = npmCommand - node.properties["__yarnCommand__"] = npmCommand + node.properties["__yarnCommand__"] = npmCommand.replace( + "npx", + "yarn dlx" + ) node.properties["__pnpmCommand__"] = npmCommand.replace( "npx", "pnpm dlx"