2

I'm facing this issue after run npm i Actually this react app share by someone so right now i'm trying to run it in my PC. First of all i run npm i to install npm but this is giving error as given below:-

I just want to run this code how can i do this what wrong with it?

error

Thank you for your efforts!

Rohit Verma
  • 3,657
  • 7
  • 37
  • 75

2 Answers2

2

Clear everything and try again:

npm cache clear --force
rm -rf node_modules
npm install
davood Sandoghsaz
  • 674
  • 1
  • 4
  • 13
  • giving error when i run `rm -rf node_modules` – Rohit Verma Nov 26 '21 at 07:25
  • npm WARN using --force Recommended protections disabled. PS E:\Project\test\ClientApp> rm -rf node_modules Remove-Item : A parameter cannot be found that matches parameter name 'rf'. At line:1 char:4 + rm -rf node_modules + ~~~ + CategoryInfo : InvalidArgument: (:) [Remove-Item], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand – Rohit Verma Nov 26 '21 at 07:26
  • Try `rm -r -fo node_modules ` instead of line 2 – davood Sandoghsaz Nov 26 '21 at 07:28
0

Run the below command :

npm install --save tapable

then run your project.

Dhaval Darji
  • 513
  • 5
  • 19