node-sqlserver-v8 icon indicating copy to clipboard operation
node-sqlserver-v8 copied to clipboard

Install msnodesqlv8 offline system

Open vipeesh opened this issue 3 years ago • 2 comments

I have installed this package in my local machine where i have access to internet and it worked well. Now we wanted to move the changes in windows server where we don't have internet access.

First i tried by copying installed folder from my local machine to server. But am getting following error

Application has thrown an uncaught exception and is terminated: Error: Module did not self-register. at Object.Module._extensions..node (module.js:682:18) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at connectionModule (F:\Sony Live Sites\SONY_RIGHTS\SONY_RIGHTS\node_modules\msnodesqlv8\lib\connection.js:10:21) at Object. (F:\Sony Live Sites\SONY_RIGHTS\SONY_RIGHTS\node_modules\msnodesqlv8\lib\connection.js:679:3) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object. (F:\Sony Live Sites\SONY_RIGHTS\SONY_RIGHTS\node_modules\msnodesqlv8\lib\sql.js:22:12)

Now we are trying to install by packaging this module for offline using npm-pack-all In this one also we are getting some errors

Can you guys please help us or give some suggestion to install this module on offline machine? thanks

vipeesh avatar Oct 03 '22 13:10 vipeesh

First thing to note is when you install locally the module downloaded matches the version of node running. Because we use cpp each version of node has its own compiled module.

The downloaded module is placed in build release folder. When you package and deploy you are probably picking up this module. The error you see is most likely down to version of node on server is not same as that used when module Was downloaded. These modules are all stored on release page of git release.

If you first ensure node version and architecture are same then should be ok. Else somehow you need to manually patch the compiled build when you release on build box.

On Mon, 3 Oct 2022 at 14:27, vipeesh @.***> wrote:

I have installed this package in my local machine where i have access to internet and it worked well. Now we wanted to move the changes in windows server where we don't have internet access.

First i tried by copying installed folder from my local machine to server. But am getting following error

Application has thrown an uncaught exception and is terminated: Error: Module did not self-register. at Object.Module._extensions..node (module.js:682:18) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at connectionModule (F:\Sony Live Sites\SONY_RIGHTS\SONY_RIGHTS\node_modules\msnodesqlv8\lib\connection.js:10:21) at Object. (F:\Sony Live Sites\SONY_RIGHTS\SONY_RIGHTS\node_modules\msnodesqlv8\lib\connection.js:679:3) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object. (F:\Sony Live Sites\SONY_RIGHTS\SONY_RIGHTS\node_modules\msnodesqlv8\lib\sql.js:22:12)

Now we are trying to install by packaging this module for offline using npm-pack-all In this one also we are getting some errors

Can you guys please help us or give some suggestion to install this module on offline machine? thanks

— Reply to this email directly, view it on GitHub https://github.com/TimelordUK/node-sqlserver-v8/issues/263, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXWJGZ6ZVDNPLMBT5GPIU3WBLNNRANCNFSM6AAAAAAQ3TCGQU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TimelordUK avatar Oct 03 '22 13:10 TimelordUK

Thanks for the quick reply. I guess the version are different. I will make sure both are same version and check it

vipeesh avatar Oct 03 '22 13:10 vipeesh