Unable to download msnodesql-0.2.1-v0.10-x64.msi

前端 未结 4 1833
野性不改
野性不改 2021-01-12 12:03

I can\'t get msnodesql to install.

Originally I tried

npm install node-sqlserver

... and this warns that it has been superceded by

4条回答
  •  死守一世寂寞
    2021-01-12 12:38

    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:

    • MS Server 2008 R2
    • node v0.10.29 32-bit
    • node-gyp v0.13.1
    • python v2.7.7
    • Visual Studio 2013 Express

    when i tried installing msnodesql per kernel's instructions:

    npm install C:\Users\foo\msnodesql
    

    ... 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:

    Operation.h, line 38, added cast to last argument:
    int result = uv_queue_work(uv_default_loop(), &operation->work, OnBackground, (uv_after_work_cb)OnForeground);
    
    stdafx.h, line 37, added #include to solve shared_ptr issues:
    #include 
    

    after those changes, re-doing my npm install worked.

提交回复
热议问题