- Operating System: Windows
- Node Version: 8.9.4
- NPM Version: 6.4.0
- webpack Version: N/A
- webpack-dev-server Version: 3.1.8
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
> [email protected] 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! [email protected] 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 [email protected] 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
Code
N/A
Expected Behavior
npm installfinishes without errorActual Behavior
npm installfinishes with the following error becausermis not present at Windows environmentsFor 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