Skip to content

npm stop error in alpine(busybox) #64

Description

@nAnderYang

node in alpine container
prestop run npm stop error

$ npm stop

> nfb@1.0.0 stop
> egg-scripts stop --title=NFB

[egg-scripts] stopping egg application with --title=NFB
⚠️  RunScriptError: Run "sh -c ps -wweo "pid,args"" error, exit code 1
⚠️  Command Error, enable `DEBUG=common-bin` for detail

alpine buxybox, the ps command does not include the -wwe parameter.

$ ps --help
BusyBox v1.37.0 (2025-05-26 20:04:45 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

is it possible to detect and then decide which parameters to use when using the ps command?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions