Chisle
The coding-agent plugin that bills 52% of a bare model across 20 live tasks. Terse persona + tool-output compressor + context diet.
翻訳待ち
Node.js native addon build tool
翻訳待ち
開発ツールPython · JavaScriptGitHub @nodejs自分でインストール所有者未確認
Paste into Claude or ChatGPT for installation instructions suited to your environment.
Have you tried it? One tap is enough. No sign-in needed.
Loading the full README. The saved excerpt is shown below.
node-gyp - Node.js native addon build tool
node-gyp is a cross-platform command-line tool written in Node.js for
compiling native addon modules for Node.js. It contains a vendored copy of the
gyp-next project that was previously used
by the Chromium team and extended to support the development of Node.js native
addons.
Note that node-gyp is not used to build Node.js itself.Read the full README ↗node-gyp - Node.js native addon build toolnode-gyp is a cross-platform command-line tool written in Node.js for
compiling native addon modules for Node.js. It contains a vendored copy of the
gyp-next project that was previously used
by the Chromium team and extended to support the development of Node.js native
addons.
Note that node-gyp is not used to build Node.js itself.
All current and LTS target versions of Node.js are supported. Depending on what version of Node.js is actually installed on your system
node-gyp downloads the necessary development files or headers for the target version. List of stable Node.js versions can be found on Node.js website.
[!Important] Python >= v3.12 requires
node-gyp>= v10
You can install node-gyp using npm:
npm install -g node-gyp
Depending on your operating system, you will need to install:
makeXcode Command Line Tools which will install clang, clang++, and make.
Xcode Command Line Tools standalone by running xcode-select --install. -- OR --Xcode -> Open Developer Tool -> More Developer Tools....Install tools with Chocolatey using the visualstudio2026-workload-vctools package:
choco install python visualstudio2026-workload-vctools -y
Or install and configure Python and Visual Studio tools manually:
Follow the instructions in Using Python on Windows to install the current version of Python.
Install Visual C++ Build Environment: For Visual Studio 2019 or later, use the Desktop development with C++ workload from Visual Studio Community. For a version older than Visual Studio 2019, install Visual Studio Build Tools with the Visual C++ build tools option.
To target native ARM64 Node.js on Windows on ARM, add the components "Visual C++ compilers and libraries for ARM64" and "Visual C++ ATL for ARM64".
To use the native ARM64 C++ compiler on Windows on ARM, ensure that you have Visual Studio 2022 17.4 or later installed.
It's advised to install the following PowerShell module: VSSetup using Install-Module VSSetup -Scope CurrentUser.
This will make Visual Studio detection logic use a more flexible and accessible method, avoiding PowerShell's ConstrainedLanguage mode.
node-gyp requires that you have installed a supported version of Python.
If you have multiple versions of Python installed, you can identify which version
node-gyp should use in one of the following ways:
--python command-line option, e.g.:node-gyp <command> --python /path/to/executable/python
node-gyp is called by way of npm, and you have multiple versions of
Python installed, then you can set the npm_config_python environment variable
to the appropriate path:export npm_config_python=/path/to/executable/python
Or on Windows:
py --list-paths # To see the installed Python versions
set npm_config_python=C:\path\to\python.exe # CMD
$Env:npm_config_python="C:\path\to\python.exe" # PowerShell
If the PYTHON environment variable is set to the path of a Python executable,
then that version will be used if it is a supported version.
If the NODE_GYP_FORCE_PYTHON environment variable is set to the path of a
Python executable, it will be used instead of any of the other configured or
built-in Python search paths. If it's not a compatible version, no further
searching will be done.
When building modules for third-party Node.js runtimes like Electron, which have
different build configurations from the official Node.js distribution, you
should use --dist-url or --nodedir flags to specify the headers of the
runtime to build for.
Also when --dist-url or --nodedir flags are passed, node-gyp will use the
config.gypi shipped in the headers distribution to generate build
configurations, which is different from the default mode that would use the
process.config object of the running Node.js instance.
Some old versions of Electron shipped malformed config.gypi in their headers
distributions, and you might need to pass --force-process-config to node-gyp
to work around configuration errors.
To compile your native addon first go to its root directory:
cd my_node_addon
The next step is to generate the appropriate project build files for the current
platform. Use configure for that:
node-gyp configure
This is the beginning of the README. Read the rest at the original. Read the full README ↗