-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for x64 of node.js #178
Comments
I am trying to install the x64 version of iisnode with iisnode-full-iis7-v0.1.19.0-x64.msi. I am getting an error message that node.exe cannot be found in c:\program files (x86). I have installed the 64 bit version of node.js release 0.8.1. It has installed nodejs in the directory c:\program files. I do not see a way to change the directory in the installation package. |
You must use the nodeProcessCommandLine setting in the iisnode section of web.config (https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config) or in the iisnode.yml configuration file (https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/iisnode.yml) to indicate the command line iisnode should use to launch the node.exe process. If using iisnode.yml, you would need to say something like this:
|
I do not get that far. I cannot install iisnode using the msi package (iisnode-full-iis7-v0.1.19.0-x64.msi). During the installation process I am getting the error message "The node.exe is not found at C:\Program Files (x86)\nodejs. IIS cannot service node.js applications without node.exe. Please run the latest node.js installer......, then restart this installer". I expect that the problem is that I have installed the 64 bit version of node.js (release 0.8.1). I downloaded it from the nodejs site. I finally fooled the msi by manually creating the directory C:\Program Files (x86)\nodejs and copying the file node.exe to it. But this might create all kind of new problems. I still have the impression that there is a problem in the msi file. |
Yes, the MSI currently requires x86 version of node.js to be installed. This will be addressed in the future to allow either x64 or x86 versions. As you said, the iisnode MSI can be tricked into installing regardless by either manually placing node.exe in %programfiles(x86)\nodejs\node.exe, or by simply installing the x86 version of node.js before installing iisnode. After iisnode is installed, x86 version of node.js can be removed, as long as the |
Also, may I ask why you require x64 of node.js in your application? |
I have downloaded the latest x64 installer and it checks for node.js in Program Files (x86). If you are going to have an x64 installer, shouldn't it check for an x64 node? |
The bitness of iisnode need not match the bitness of node.exe it is using. Currently by default iisnode requires 32 bit node.exe, but if you read this thread you will learn how you can substitute 64 bit version of node.js instead. |
This is a very annoying hurdle for iisnode. I reinstalled node 3 times before realizing it was only checking for 32 bit node. Once I realized what was happening I was able to move it into the other folder for installation but it does seem extremely odd to offer a 64 bit installer for iisnode but not check for 64 bit node. Yes the bitness does not "need" to match that of node, but if I'm downloading 64 bit iisnode what do you think the chances are that I also installed 64 bit node? Pretty high I would think. |
I hear you. This will be fixed. |
This table shows which node.js version will be required given a particular installer/os architecture combination:
|
Nice :D |
Probably because he has an x64 CPU and wants to take advantage of it. |
Why has this been closed? I've just tried to install and have the same problem as the person that opened this thread. The installer still doesn't work and also the proposed solution of changing the web.config is a bit confusing as I surely need iisnode installed to be able to do this - the reason I'm here! |
This change has been checked into the repository but not released as a binary MSI yet. The MSI should be released within two weeks; until then you can build the project with this fix in place. |
Change of plans. The new fix to this issue is follows:
The end result in terms of experience is that on x64 systems, one can have either node.js x64 or x86 installed, and either will work fine with iisnode x64. |
As a work around, until the MSI is available and in WebPI ... from an administrator command prompt: |
@tracker1 YES!!!! |
Symbolic link worked like a charm, thanks a lot! |
Apparently, In web.config, |
Awesome. Glad this is fixed :) |
the best option i had found is to use npm for installing azure. |
This issue still exists in the installer used by the Windows Platform Installer. I have just tried to install the latest Azure SDK for Node (published 2014-02-25) which requires iisnode and fails with this issue. From the log it seems it is trying to install: |
@mohitchhabra @adrianhopebailie I don't think this issue is about the azure cli tool. This is about the windows installer for iisnode specifically. |
I am referring to the issue with the installer. If you attempt to install anything using the Web Platform Installer for which iisnode is a prerequisite the install of iisnode fails with this error (it looks for an x86 version node installed and fails if you have an x64 version installed). i.e. If the issue has been fixed, that fix has not been incorporated into the installer that is used by WPI which is one of the most common ways people will install iisnode |
Oh gotcha. Makes sense. Sounds like the WPI team needs to update to use the new installer. |
@tracker1 |
@kalehv |
The iisnode MSI must be updated to check for x64 instead of x86 in this case
The default nodeProcessCommandLine may also require updates
The text was updated successfully, but these errors were encountered: