Skip to content

Instantly share code, notes, and snippets.

@sampathsris
Created June 22, 2015 19:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sampathsris/719fc733d6d5e98b2b53 to your computer and use it in GitHub Desktop.
Save sampathsris/719fc733d6d5e98b2b53 to your computer and use it in GitHub Desktop.
How to resolve the error The node identifier for {My Machine Name} is {Some random letters}
@echo off
:: Harvest path is C:\Program Files (x86)\CA\SharedComponents\PEC\bin
:: Node.js path is C:\Program Files (x86)\nodejs
:: Let's replace Harvest's path with Node.js's path
set PATH=%PATH:C:\Program Files (x86)\CA\SharedComponents\PEC\bin;=%;C:\Program Files (x86)\nodejs;
:: Start a command prompt. But the environment variable change in previous
:: line will make sure that this new command prompt will run Node.js's node.exe
:: rather than Harvest SCM's node.exe.
start %ComSpec%
:: Done! Now put this in a directory where you have other personal scripts,
:: and make sure this is in your PATH. And now whenever you want to run Node.js
:: instead of command prompt you just hit Windows + R > "nodecmd".
@sampathsris
Copy link
Author

This is in fact an answer to this question: http://stackoverflow.com/a/30979722/1461424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment