skip to Main Content

node is not recognizing command prompt error

node not recognized error so set the path in environment variables both system and user variable & checked it still not working so uninstalled it and followed the steps set the path. restated the system and comand prompt again no progress

2

Answers


  1. nodejs has a great page explaining how to install for windows, linux and macos,
    just go here and follow the instructions.

    then just do the same thing you did last time (restart the system, add node to the path) and it should work.

    in case it doesn’t, you either did something wrong, or that this is a nodejs error, in that case you can create an issue on their github page

    Login or Signup to reply.
  2. In Windows, you need to set node.js folder path into system variables or user variables.

    1. open Control Panel -> System and Security -> System -> Advanced System Settings -> Environment Variables

    2. in "User variables" or "System variables" find variable PATH and add node.js folder path as value. Usually it is C:Program Filesnodejs;. If variable doesn’t exists, create it.

    3. Restart your IDE or computer.

    It is useful add also "npm" and "Git" paths as variable, separated by semicolon.

    or

    open the command prompt and type in
    SET PATH=C:Program FilesNodejs;%PATH%

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search