J Moss
J Moss

Reputation: 205

Cannot find module 'webpack-cli/bin/config-yargs', cannot find module 'webpack-cli'

I have tried nearly all solutions however nothing has worked for me. i cloned a repo from a friend and tried to run the client directory. When i try run client, i get the error:

Once i cloned the project i did npm install (as it said in the readME) but when i tried to run the client i would run into this problem:

solutions i tried:

Installing 'webpack-cli' (running 'npm install -D webpack-cli')... npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

24 packages are looking for funding run npm fund for details

found 33 vulnerabilities (22 low, 7 moderate, 4 high) run npm audit fix to fix them, or npm audit for details Error: Cannot find module 'webpack-cli'

Upvotes: 1

Views: 851

Answers (1)

J Moss
J Moss

Reputation: 205

UPDATE: My colleague updated some of the dependencies by GitHub bot and i pulled the repo. That seemed to do the trick

Upvotes: 0

Related Questions