node. js access to SQL Server Node_modules "Msnodesql" Installation compilation method

Source: Internet
Author: User
Tags microsoft sql server

Http://stackoverflow.com/questions/19661811/unable-to-download-msnodesql-0-2-1-v0-10-x64-msi

The following installation environments are the first to meet:

Node.js - use the latest version if possible, but it has been tested on node 0.6.10 and laternode-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 MicrosoftSQL Server Native Client 11.0 - available as Microsoft SQL Server 2012 Native Client found in the SQL Server 2012 Feature Pack


然后:
先:Download the Drive separately from http://www.microsoft.com/en-us/download/details.aspx?id=29995. Then I advise you the following:
再然后按上面的步骤进行

    • 1, download from the Git Hub (msnodesql) Zipped package. Unzip it to the local drive
    • 2. In the unzipped directory replace the contents of the

      scripts/install.js
    • 3. Add a row in the. js file above
    • var msiVer = "v0.8" 插入在var msiName(第16行)前,保存
    • 4. Then execute the following command under the node. js command Line
      npm install FULL_PATH_TO_UNZIPPED_PACKAGE_DIR(此处为git hub下载的压缩包解压后的路径) -g
    • 5, in the NPM file directory node_modules can see Msnodesql folder, Sqlserver.node files in Lib inside.
 

Node. js access to SQL Server Node_modules "Msnodesql" installation compilation method

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.