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

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

    Follow below Steps:

    1. Open command prompt: RUN > CMD
    2. Navigate to folder where nodejs is installed: C:\users\name>cd path_of_nodejs
    3. Open nodejs: C:\path_of_nodejs>node
    4. Exit from node REPL mode: >process.exit()
    5. You are ready for your node commands: >node -v

提交回复
热议问题