Skip to content

[Bug]: npm create storybook@latest fails in Alpine containers #33847

@beporter

Description

@beporter

Describe the bug

The issue is that busybox's ps binary doesn't know about the -p switch, so running npm create storybook@latest fails in a stock node:lts-alpine docker container.

ps: unrecognized option: p
BusyBox v1.37.0 (2025-12-16 14:19:28 UTC) multi-call binary.

Usage: ps [-o COL1,COL2=HEADER] [-T]

Show list of processes

	-o COL1,COL2=HEADER	Select columns for display
	-T			Show threads

Reproduction link

https://gist.github.com/beporter/a45cbf03afa37b474f1127fe89144a90

Reproduction steps

Since this error occurs during project setup, it can not be represented in a static git repository. The link above is a transcript of the commands necessary to trigger the error. Those commands (without their output) can be summarized as:

% docker run -it --rm node:lts-alpine sh

% npm create vue@latest

% cd vue-project/

% npm install

% npm create storybook@latest

System

# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.23.3
PRETTY_NAME="Alpine Linux v3.23"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions