npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.49k stars 3.17k forks source link

[BUG] webpack-cli installation failure #4198

Open Tsjippy opened 2 years ago

Tsjippy commented 2 years ago

Is there an existing issue for this?

This issue exists in the latest npm version

Current Behavior

modules seem to install correctly but is not.

Expected Behavior

I should not have to invoke npm update, the first install should work straight away

Steps To Reproduce

  1. Install nodejs on windows 11
    • Install nodejs
    • create new folder
    • run npm init -y
    • run npm install webpack webpack-cli --save-dev

Environment

System: OS: Windows 10 10.0.22000 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 8.60 GB / 15.74 GB Binaries: Node: 14.17.6 - C:\Program Files\nodejs\node.EXE npm: 8.3.0 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 96.0.4664.110 Edge: Spartan (44.22000.120.0), Chromium (95.0.1020.40) Internet Explorer: 11.0.22000.120 Packages: webpack: ^5.65.0 => 5.65.0 webpack-cli: ^4.9.1 => 4.9.1

haneenmahd commented 2 years ago

How did you run webpack.

If its not installed globally, you should run using npx webpack