node.js error after switching to Windows - Error: %1 is not a valid Win32 application

I switched from OSX to Windows 7. A project I'm coding is throwing an error which I believe to be related to the switch.

The first line below is the line causing the error to be thrown:

  if (!/not find/i.test(e.message)) {
    throw e
  }

The error is:

Error: %1 is not a valid Win32 application.

Could somebody tell me how to get this line working in Windows?

If you copy a project from one platform to another or you switch CPU architectures (e.g. x86 to ARM or x86 to x86_64), you'll need to recompile any addons that your project may have been using, either directly or indirectly.