Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.61 KB

README_WINDOWS.md

File metadata and controls

57 lines (38 loc) · 2.61 KB

Aerospike Node.js Client on Windows appveyor

The Aerospike Node.js client port to Windows is a community supported project and suitable for application prototyping and development.

Prerequisites

  • Windows 7 or later
  • Node.js v10.x (LTS) or later

The package includes a native add-on. To compile the add-on, Microsoft's Visual C++ Build Tools 2015 are required, which you can download from the Visual Studio website. The required components are:

  • Windows 8.1 SDK
  • Visual C++ 2015 (v140) Toolset for Desktop

Windows 8.1 SDK VC++ 2015.3 v14.00 (v140) toolset for desktop

Aerospike C Client SDK

The Aerospike Node.js client depends on the Aerospike C client. During installation, a copy of the C client SDK is downloaded and compiled. Additionally, a set of pre-built, third-party libraries are downloaded and installed via the aerospike-client-c-dependencies nuget package. Please refer to the Aerospike C client documentation for further information.

Frequently Asked Questions

While installing the client, I am getting an error that "build-c-client.ps1 cannot be loaded because running scripts is disabled on this system". What do I need to do?

PowerShell's execution policy prevents you from running the client's installation script. You can temporarily lift the restrictions for the current PowerShell session by running the following command:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process

For further information, please refer to the PowerShell documentation About Execution Policies.

Distutils has been removed from Python 3.12, which causes my node-gyp build to fail. How can I fix this?

Since Distutils is no longer included in Python after 3.12, it is necessary to install Distutils yourself if using Python 3.12 or above.

The following command should allow you to build with Python 3.12:

python3 -m pip install packaging

For more information on this topic, see here.