I can't get msnodesql to install.
Originally I tried
npm install node-sqlserver
... and this warns that it has been superceded by msnodesql.
I successfully installed Node.js, iisnode and I see the sample Hello.js being served up (yayee, wonderful), so at least node and iisnode are working.
I installed the prereq's:
Node.js - use the latest version if possible, but it has been tested on node 0.6.10 and later
node-gyp - latest version installed globally (npm install -g node-gyp)
python 2.7.x - for node-gyp (make sure it is in the path)
Visual C++ 2010 - the Express edition is freely available from Microsoft
SQL Server Native Client 11.0 - available as Microsoft SQL Server 2012 Native Client found in the SQL Server 2012 Feature Pack
... and when I run this, I get:
npm install msnodesql
npm http GET https://registry.npmjs.org/msnodesql
npm http 304 https://registry.npmjs.org/msnodesql
> msnodesql@0.2.1 install c:\nodejs\node_modules\msnodesql
> node scripts/install.js
You are downloading Microsoft Driver for Node.js for SQL Server from
Microsoft, the license agreement to which is available at
http://download.microsoft.com/download/6/E/2/6E2D7972-E54D-45AA-
8AB6-41E616035147/EULA.rtf and in the project folder to which the
software is downloaded. Check the package for additional dependencies, which
may come with their own license agreement(s). Your use of the package and
dependencies constitutes your acceptance of their license agreements. If
you do not accept the license agreement(s), then delete the relevant
components from your device.
install.js: Unable to download msnodesql-0.2.1-v0.10-x64.msi
npm ERR! weird error 1
npm ERR! not ok code 0
I registered C++ with a license key, so, can someone please tell me what I am missing here?
Excuse the noob question here, but I have to ask, how do I "Check the package for additional dependencies" ? What is that referring to exactly?
kernel's answer got me most of the way there. i had to perform a couple of additional steps to get it to work.
config:
when i tried installing msnodesql per kernel's instructions:
... i got compile errors.
i made fixes based on what i read here: https://github.com/Azure/node-sqlserver/issues/168
unfortunately, his 2nd code change didn't come through. here are all the changes i made:
after those changes, re-doing my npm install worked.
This worked to install from here:
http://www.microsoft.com/en-us/download/details.aspx?id=29995
... not from npm:
This problem occurs because in the target packege in scripts/install.js there's invalid url to the driver. Actually on Microsoft Download you will find msnodesql-0.2.1-v0.8-x64.msi but not msnodesql-0.2.1-v0.10-x64.msi which is pointed in script. The only way to correct it is to install it from local drive.
Download the Drive separately from http://www.microsoft.com/en-us/download/details.aspx?id=29995. Then I advise you the following:
In the unzipped directory replace the contents of the
as the following:
Then just run
The install process should not fail. And in you app's modules folder will be a
package. Then you should download (if you are not building by your self) the
from Git Hub (my reputation doesn't allow to post me link to it, so I'll reply with it if you need it) and place it to the
lib folder of your msnodesql module directory. This should help you.