module.js:485 process.dlopen(filename, module.exports); - node.js

I am getting this error on a node native addon I created. It works fine on my development machine, but breaks on the test machine.
module.js:485 process.dlopen(filename, module.exports);
Error: The specified module could not be found.
j:\node_modules\mhl-dispatcher\node_modules\node-odp\libs\build\Release\odpnode.node
In the c++ code, I'm using some dlls:
System.dll
System.Data.dll
Oracle.DataAccess.dll
I am using the /clr option.
Any ideas to what the issue might be?
Thanks.

I've figured out the problem, There are two dlls required to run c++ natives on a machine msvcp100d.dll and msvcr100d.dll. The are added by installing the Ms visual c++ 2010 redistributable package. Also for those running 64 bits you would the the 64 bit versions of the dlls or you would get an error.
Error : %1 is not a valid Win32 Application
Hope this helps others.
Cheers

Node either couldn't find the file in any location that it tried, or the Object file does not export a NODE_MODULE symbol.

Related

How to build Microsoft Detours Express Version 3.0?

I'm trying to build detours library, and I encountered some problems that I did not succeeded to solve.
I ran on Windows 7 and 10 64bit, Visual Studio 2015.
I tried in all possible command prompts( WOW64/ VS), ran vcvarsall.bat/vcvars32.bat.
Please find attached the errors that I've got.
Is there any other way to do it? or what could be the problem?
Thanks.
Since the Detours Express only supports 32-bit processes, some of the files, such as disolx64.cpp and disolarm.cpp, cannot be compiled.
To work around the problem, try commenting the #include "disasm.cpp" directives in the disol*.cpp files that generate the fatal error messages (i.e. excepting disolx86.cpp). Then compile using nmake command.
Or better find and download DetourExpress.msi.

Error Message: Node.exe is not a valid Win32 Application

I have installed www.deployd.com on my Windows-XP PC for learning purposes. The book am studying ask me to execute the following command at the prompt ::
> dpd create sportsstore
but i get the following error message
Node.exe is not a valid Win32 Application
What must i do to rectify this error?
Thanks.
UPDATE
The node.exe it is complaining about is inside the the tools folder of Deployd. It is like this
C:\program files\Deployd\tools\Node.exe is not a valid Win32 Application
That error is usually an indicator of trying to run a 64bit application in a 32bit OS.
The solution is to change the version of node to the 32bit version. Be careful to choose the same version as your tutorial to avoid any conflicts.

Fatal error C1083 installing ursa

I got the following error installing URSA on node.js (I'm using windows 7).
c:\users\napoleon\node_modules\ursa\src\ursaNative.h(10): fatal error C1083: Ca
nnot open include file: 'openssl/rsa.h': No such file or directory [C:\Users\Na
poleon\node_modules\ursa\build\ursaNative.vcxproj]
gyp ERR! build error
I have tried (reading on the internet it seems the problem has to do with SDK or OpenSSL):
Reinstalling Windows SDK 7
Upgraded to the newer version 7.1.
Reinstalled OpenSSl 1.0.1h 64.
Removed the previous and installed OpenSSl 1.0.0 m (I have no idea what the m, h mean).
I have a few different versions of the redistributable Microsoft visual C++.
No idea what to try, any help is appreciated.
Edit: I checked the path and indeed it seems there isn't a file there. However it's supposed to be intalled BY ursa as far as I see, so the problem is probably ursa failing to install this.
Edit 2: I watched the folder while trying to install, a URSA folder appears and disappears with the error, so it's definitely a problem installing the file, anyone what can cause that.
After you install the openSSL library, VC++ needs to know how to find the include files when building stuff. That's not set up by default.
VC++ uses the INCLUDE environment variable as part of it's include file search path. So before you run the npm install, do this from the command line:
set INCLUDE=%INCLUDE%;<PATH TO OPENSSL INCLUDES GOES HERE>
Basically whatever the parent directory of openssl/rsa.h is, put that in the include path.

"The installer has encountered an unexpected error installing this package...". Is it possible to install Node.js (v0.10.15) on Windows XP?

I want to use Node.js under Windows XP. I've downloaded the node-v0.10.15-x86.msi installer but when I try to install Node.js I always get this error at the middle of the process:
The installer has encountered an unexpected error installing this
package. This may indicate a problem with this package. The error code
is 2908.
Here is a screenshot:
Is it possible to install Node.js on Windows? I cannot find any installation instructions on their site. I have AMD Athlon XP 1833 MHz processor. It is quite old processor. May this be the reason?
So, I figured out how to install it :)
I did a double click on node-v0.10.15-x86.msi file in order to install Node. And that caused an error.
.msi files shouldn't be installed that way. I found a solution on this page http://thebackroomtech.com/2007/08/23/howto-extract-files-from-a-msi-file-using-the-windows-command-line/
So my steps in Windows command line. I pointed a directory where to unpack node-v0.10.15-x86.msi to:
C:\>msiexec /a "C:\Downloads\Programs\Node.js\node-v0.10.15-x86.msi" /qb TARGETDIR="C:\Program Files\nodejs"
And now it works. It unpacked Node.js and all its dependencies to C:\Program Files\nodejs. I just added the directory to PATH.
I'm glad I can use Node on Windows. Working under Ubuntu is a pain.
I had the same problem. For resolve this problem you need to remove this key from registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
Installer\UserData\S-1-5-21-1123561945-1935655697-1060284298-1003\
Components\AD95649F068525549B26938D7D18FEA7
Founded here
For me the S-1-5-21 was different, I renamed it to _del
HKEY_LOCAL_MACHINE
\SOFTWARE
\Microsoft
\Windows
\CurrentVersion
\Installer
\UserData
\S-1-5-21-1292428093-1606980848-1188629396-500_del

Problems with registering a COM+ dll in 64bit

when we build a COM + application in windows7 64 bit with "AnyCPU" or "X64" bit configuration we are not able register that dll by using below options
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\regsvcs.exe" "...\ABC.dll"
The following installation error occurred:
1: Failed to load assembly 'ABC.dll'.
2: Could not load file or assembly 'file:///ABC.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Note:: i have checked properly all its dependency are built properly in 64 bit with 64 bit configuration.
Note:: i am using "VS2012 x64 Cross Tools Command Prompt" in Adminstrator mode to register
This work fine if we build in windows 7 32bit.
any suggestions?
Have you tried using this:
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regsvcs.exe" "...\ABC.dll"
instead of this:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\regsvcs.exe" "...\ABC.dll"
The difference is in the framework folder inside C:\Windows\Microsoft.NET\, Framework64 instead of Framework.

Resources