Skip to content

Cannot install webpack-cli without bash #749

@SIkebe

Description

@SIkebe

Describe the bug
npm install webpack-cli fails if you don't have bash in your PATH.
v3.2.1 worked but v3.2.2 fails.

To Reproduce

mkdir webpack-demo && cd webpack-demo
npm init -y
npm install webpack webpack-cli --save-dev
> webpack-cli@3.2.2 postinstall C:\webpack-demo\node_modules\webpack-cli
> webpack-cli-donate

'bash' is not recognized as an internal or external command,
operable program or batch file.
npm WARN webpack-demo@1.0.0 No description
npm WARN webpack-demo@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-cli@3.2.2 postinstall: `webpack-cli-donate`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webpack-cli@3.2.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Expected behavior
npm install works regardless of bash existence or clear documentation of requirement for bash.

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