2
Guys, I installed Node normally and added it to the environment variable; I did some math operations to test and it worked. When I tried to install modules (socket.io and express) it did not work, even running as administrator. I tried to check the command to test if npm is installed, but I get an error back. The command was to check the npm version: npm -v
and it also didn’t work with Node even though it was up and running: node -v
.
You are doing the commands wrong. Do not enter Node mode... do "Node -v" and not "Node [enter] -v".
– Sergio
Perform the functions
npm
outside the Node command. Just open yourcmd
and enter the commandnpm ...
. If I haven’t made myself clear, feel free to question.– Pedro Camara Junior
I understand perfectly. It worked. I was actually running the commands wrong, but now the problem is different: when I tried to install the socket.io several errors occurred.
– Mike
I believe this question has been solved so :) If you need help with the other mistakes, you can post new questions and see what to do when having a question answered
– Pedro Camara Junior
@Ivan, ideally you would open another question to talk about these errors you are having when installing the package. Just to keep the organization of the site, and when you open the next question about the error try to copy the entire installation log, only that image there does not help much, you would need to know what was written above.
– Zignd