You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.
Long story short: os.arch doesn't report the architecture of the processor, but the architecture node runs in. So if you're running node for x86 on an x64 system, os.arch will report ia32. This was the case for my (appveyor)[http://www.appveyor.com] build.
You can fix this by not using os.arch, but by checking for the existence of the c:\Program Files (x86)\ directory. If it exists, you'll need to look for MsBuild there, otherwise it'll be in c:\Program Files\.
You can use the same check to switch between Framework and Framework64
The text was updated successfully, but these errors were encountered:
It's not you, it's node.
Long story short:
os.arch
doesn't report the architecture of the processor, but the architecture node runs in. So if you're running node for x86 on an x64 system,os.arch
will report ia32. This was the case for my (appveyor)[http://www.appveyor.com] build.You can fix this by not using
os.arch
, but by checking for the existence of thec:\Program Files (x86)\
directory. If it exists, you'll need to look for MsBuild there, otherwise it'll be inc:\Program Files\
.You can use the same check to switch between
Framework
andFramework64
The text was updated successfully, but these errors were encountered: