0

I have create virtual machine in azure cloud. Then I install 64 bit nodejs with msi. I am trying to run node js in powershell. I am getting following error.

How can I fix this?

PS C:\Program Files\nodejs>
PS C:\Program Files\nodejs> node
node : The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ node
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (node:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
3
  • Is the Node.js folder set in your PATH variable? Commented Feb 19, 2014 at 12:12
  • I didnt find mycomputer icon or start button in azure server, so I didnt set PATH. Commented Feb 19, 2014 at 12:44
  • I'm assuming that you're using Windows Server 2012. You will find everything in the Control Panel. If you want to use the shell instead follow the post from @Zugwalt. Commented Feb 19, 2014 at 15:17

1 Answer 1

1

Node was likely not set to be in your execution path by default. Try adding it to your path:

set PATH=%PATH%;C:\Program Files\nodejs

And then running it:

node

If that works go ahead and add it to your path permanently using setx.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.