Reputation: 51
I am installing webpack manually. The problem seems to be that the environment variable is set incorrectly. So to reinstall nodjs, I learned and ran the code 'rm -fr /usr /usr/local/bin/{node,npm} /usr/local/lib/node_modules/'.
However, the message 'Remove-Item : Could not find a parameter that matches the parameter name 'rf''. The path of the code should be used to fit my computer.I changed the code because I wanted to, but the same message appears. How can I solve this?
Upvotes: 0
Views: 66
Reputation: 1171
Looking at your folder structure, I think you are using a linux based operating system. To reinstall nodejs, you can refer to this article by digital ocean, which explains briefly on installing and uninstalling nodejs on linux.
Also, if you would like remove a folder in linux or using git bash, navigate to the parent folder of node_modules, run
rm -rf node_module/
Similarly you can do it for the bin directory for {node,npm}. Also if you are looking at setting up webpack for react, you could follow this medium article by Marcos Lombog on A Complete Webpack Setup for React.
Upvotes: 1