I put a lot of code in my terminal and now I have problems with NPM. Problem is that I took code from co-pilot and I am not sure what changed. I did the re-install process a few times for node.js. Typing node –version in cmd gives me the version but trying to run npm –version gives me the same error The syntax of the command is incorrect. This also happens with any npm command. A video that I thought would help told me to change the path in environment variables to point to C:Program Filesnodejs but still no luck. Any help would be appreciated. This problem has been in the way for too long and I really need some help because I tried everything in my capabilities.
First time asking a question and I just put all my text in the first block for description of the problem.
Arrie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.