Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repro creation not working #18318

Open
fabpico opened this issue May 25, 2022 · 1 comment
Open

Repro creation not working #18318

fabpico opened this issue May 25, 2022 · 1 comment

Comments

@fabpico
Copy link

fabpico commented May 25, 2022

I was told to create a repro, but npx sb@next repro fails on bootstrapping.

√ 🌈 Select the repro framework » react                                  
√ πŸ“ Select the repro base template Β» cra
√ Enter the output directory ... cra
πŸƒ Running cra into C:\Users\fbp\Desktop\storybook repro\cra

πŸƒ Starting for cra latest

πŸ— Bootstrapping cra project (this might take a few minutes)
npm_config_user_agent=npm npx -p create-react-app@latest create-react-app cra && cd cra && echo "FAST_REFRESH=true" > .env && echo "SKIP_PREFLIGHT_CHECK=true" > .env
'npm_config_user_agent' is not recognized as an internal or external command,
operable program or batch file.
An error occurred while executing: `npm_config_user_agent=npm npx -p create-react-app@latest create-react-app cra && cd cra && echo "FAST_REFRESH=true" > .env && echo "SKIP_PREFLIGHT_CHECK=true" > .env`
🚨 Bootstrapping cra failed
🚨 Failed to create repro
Error: Error: command exited with code: 1:
    at repro (C:\Users\fbp\AppData\Local\npm-cache\_npx\eebb2d3a7d26a7f1\node_modules\@storybook\cli\dist\cjs\repro.js:172:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

To Reproduce

Run npx sb@next repro, choose react -> template cra -> output cra.
Or
Run npx sb@next repro, choose react -> template react -> output react.

Also after running yarn cache clean, the issue persists.

System

Environment Info:

  System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.3.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (101.0.1210.53)
@unional
Copy link
Contributor

unional commented Nov 26, 2022

√ 🌈 Select the repro renderer » react
√ πŸ“ Select the repro base template Β» react_typescript
√ Enter the output directory ... react_typescript
πŸƒ Running react_typescript into D:\code\justland\react_typescript

πŸƒ Starting for react_typescript latest

πŸ— Bootstrapping react_typescript project (this might take a few minutes)
mkdir react_typescript && cd react_typescript && touch yarn.lock && yarn init --yes && yarn add react react-dom
'touch' is not recognized as an internal or external command,
operable program or batch file.
'touch' is not recognized as an internal or external command,
operable program or batch file.

I'm getting error on touch. Seems like it does not work with Windows env.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants