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

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

    Instead of node.exe, try to run node from "Node.js command prompt".

    First, you should install nodejs.msi from nodejs.org.

    Once installation is completed, go to: Start > All Programs > Node.js > Node.js command prompt.

    It worked for me.

提交回复
热议问题