I believe a better way to tell whether the user has node.js installed (that should catch non-standard locations) would be to check the registry for its existence, using the query for programs installed for the current user (hkcu) and for the whole local machine (hklm):

    reg query hkcu\software\Node.js
    reg query hklm\software\Node.js