+-- UNMET DEPENDENCY webpack-cli@^4.9.1
`-- UNMET DEPENDENCY webpack@^5.65.0
npm ERR! code ELSPROBLEMS
npm ERR! missing: webpack-cli@^4.9.1, required by nieuwe-map@1.0.0
npm ERR! missing: webpack@^5.65.0, required by nieuwe-map@1.0.0
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ewald\AppData\Local\npm-cache\_logs\2021-12-28T13_27_47_436Z-debug.log
Run webpack: webpack : The term 'webpack' is not recognized as the name of a cmdlet, function, script file, or operable program.
webpack is not found in the folder nor in %AppData%\npm\node_modules nor in C:\Program Files\nodejs\node_modules
run npm update:
added 119 packages, and audited 120 packages in 2m
15 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Everything is installed correctly
Install another package: npm install nice-select2
webpack is gone
run npm update, works again
Expected Behavior
I should not have to invoke npm update, the first install should work straight away
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.
Install nodejs
create new folder
run
npm init -y
run
npm install webpack webpack-cli --save-dev
Result:Check the node_modules folder:
Run
npm ls
:Run webpack:
webpack : The term 'webpack' is not recognized as the name of a cmdlet, function, script file, or operable program.
webpack is not found in the folder nor in %AppData%\npm\node_modules nor in C:\Program Files\nodejs\node_modules
run
npm update
:Everything is installed correctly
Install another package: npm install nice-select2
webpack is gone
run npm update, works again
Expected Behavior
I should not have to invoke npm update, the first install should work straight away
Steps To Reproduce
npm init -y
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