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

后端 未结 7 2048
刺人心
刺人心 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:30

    Edit

    First time using node.js

    Although already answered, but just putting in my 2-cents,

    Normally, the first time users would trip over it, so am posting some screen shots, and that OP wants to try node -v, so making it a bit easier to follow.

    The Wrong !!


    The Correct !!


    or you can do ..

    Hope it helps someone.!

提交回复
热议问题