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

[Bug]: Build fails in vercel due to usage of "sh" command #23223

Closed
xzilja opened this issue Jun 27, 2023 · 1 comment
Closed

[Bug]: Build fails in vercel due to usage of "sh" command #23223

xzilja opened this issue Jun 27, 2023 · 1 comment

Comments

@xzilja
Copy link

xzilja commented Jun 27, 2023

Describe the bug

Vercel fails with following error

sh: >: command not found
--
09:33:50.671 | Error: Command "`npm run build`" exited with 127
09:33:51.168 | BUILD_UTILS_SPAWN_127: Command "`npm run build`" exited with 127

What is >: command and where is it coming from?

This is likely from a build step that outputs static path i.e. this logs for me locally
info => Output directory: /Users/.../storybook-static

But is not present in vercel logs. Error happens right before this.

To Reproduce

Run build in vercel using vite

System

Environment Info:

  System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 20.3.1 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.6.7 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 114.0.5735.198
    Firefox: 112.0.2
    Safari: 16.5.1

Additional context

No response

@xzilja xzilja changed the title [Bug]: Build fails in vercel due to usage of sh command [Bug]: Build fails in vercel due to usage of "sh" command Jun 27, 2023
@xzilja
Copy link
Author

xzilja commented Jun 27, 2023

switching install command from npm install to npm ci seems to fix this. Likely not a storybook issue

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

No branches or pull requests

1 participant