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!

2

2 Answers 2

2

Clear everything and try again:

npm cache clear --force
rm -rf node_modules
npm install
Sign up to request clarification or add additional context in comments.

3 Comments

giving error when i run rm -rf node_modules
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
Try rm -r -fo node_modules instead of line 2
0

Run the below command :

npm install --save tapable

then run your project.

9 Comments

done this but still getting same error...
can you share your package.json dependencies json ?
"devDependencies": { "eslint": "^6.6.0", "eslint-config-airbnb": "^18.0.1", "eslint-config-prettier": "^6.5.0", "eslint-plugin-import": "^2.18.2", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-prettier": "^3.1.1", "eslint-plugin-react": "^7.16.0", "eslint-plugin-react-hooks": "^2.2.0", "node-sass": "^4.14.1", "redux-devtools-extension": "^2.13.8", "redux-logger": "^3.0.6" }
Not a devDependencies Sir, need to see dependencies .
I added dependencies in snippet please check now
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.