Node.js native module is not a valid Win32 application error

前端 未结 4 1754
庸人自扰
庸人自扰 2021-02-07 05:11

Trying to make Hello World native module for node.js

Got an Win32 Project in VS 2012 with one file:

#include 

        
4条回答
  •  星月不相逢
    2021-02-07 05:38

    Unrelated to your probem: I get the same error (Error: %1 is not a valid Win32 application) when trying to execute a script with extension ".node", e.g. node.exe example.node. Other extensions (.js, .txt, no extension at all) work fine.

提交回复
热议问题