First time using node.js - “ReferenceError: node is not defined”

后端 未结 7 2123
刺人心
刺人心 2021-02-01 02:47

I just installed node.js. I tried writing node -v that should check the version - and it\'s not working. this is the output:

 > node -v ReferenceError: node          


        
7条回答
  •  别跟我提以往
    2021-02-01 03:52

    Even I faced the same when I install the NODE server and Try to execute "node-v" command from directly clicking on start up menu's NODE ICON. Instead of doing that all you need to do is GO TO command prompt then go to C:/program files/node path and type "node -v" command it will definitely going to display you the version of NODE.

提交回复
热议问题