Skip to content

npm install fails on Windows #1497

@ferdinando-ferreira

Description

@ferdinando-ferreira
  • Operating System: Windows
  • Node Version: 8.9.4
  • NPM Version: 6.4.0
  • webpack Version: N/A
  • webpack-dev-server Version: 3.1.8
  • This is a bug
  • This is a modification request

Code

N/A

Expected Behavior

npm install finishes without error

Actual Behavior

npm install finishes with the following error because rm is not present at Windows environments

c:\path>git clone https://github.com/webpack/webpack-dev-server.git
Cloning into 'webpack-dev-server'...
remote: Counting objects: 4389, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 4389 (delta 12), reused 14 (delta 5), pack-reused 4359
Receiving objects: 100% (4389/4389), 1.99 MiB | 2.02 MiB/s, done.
Resolving deltas: 100% (2432/2432), done.

c:\path>cd webpack-dev-server

c:\path\webpack-dev-server>npm install

> webpack-dev-server@3.1.8 prepare c:\path\webpack-dev-server
> (rm ssl/*.pem || true) && npm run -s transpile:index && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs

'rm' is not recognized as an internal or external command,
operable program or batch file.
'true' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-dev-server@3.1.8 prepare: `(rm ssl/*.pem || true) && npm run -s transpile:index && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webpack-dev-server@3.1.8 prepare script.

For Bugs; How can we reproduce the behavior?

On an Windows environment, run the following commands

git clone https://github.com/webpack/webpack-dev-server.git
cd webpack-dev-server
npm install

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