0

I am trying to install nodejs and npm in my computer with Windows 8.1 - 64 bit. I downloaded the msi from the official nodejs web site and installed it. When I tried to check the version of node by typing node -v, it worked perfectly. But when I tried to check whether npm is installed properly by typing npm -v, the following error appears. enter image description here

How to fix this.Can someone help me in this. I referred the answers of similar questions here. And this also.But it did not worked too.

JEJC_JACALK
  • 409
  • 1
  • 5
  • 13

1 Answers1

0

This is could because of incorrect installation. Have you tried reinstallation of Node and NPM? If not, uninstall from Program and Features and follow this walkthrough.

Also, need to set npm as global variable $PATH.

Community
  • 1
  • 1