Created
June 22, 2015 19:17
-
-
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}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is in fact an answer to this question: http://stackoverflow.com/a/30979722/1461424