Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Can't build: `Cannot open include file: 'stddef.h': No such file or directory`

オープン
#3,244 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
nodejs, python

調査の方向性

README に示されている Node.js、Python、node-gyp のバージョンを使って Windows ビルドを再現します。src/driver.cpp と js_native_api.h に関連する binding.gyp と生成された build/binding.sln を調査します。完了条件は、stddef.h が見つからないエラーなしでネイティブアドオンをビルドできることです。

索引モデルが issue の本文から書いたものです。

説明

I installed node-gyp per README and it looks like all paths are correct, yet this header file can't be opened.

gyp info it worked if it ends with ok
gyp info using node-gyp@12.1.0
gyp info using node@22.20.0 | win32 | x64
gyp info find Python using Python version 3.14.0 found at "C:\Python314\python.exe"

gyp info find VS using VS2022 (17.14.36603.0) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python314\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\npm-cache\\_npx\\c463d28440264a05\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\User\\dev\\serenade\\client\\node_modules\\serenade-driver\\build\\config.gypi',      
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\npm-cache\\_npx\\c463d28440264a05\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\22.20.0\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\22.20.0',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\User\\AppData\\Local\\npm-cache\\_npx\\c463d28440264a05\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\User\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\22.20.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\User\\dev\\serenade\\client\\node_modules\\serenade-driver',        
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\User\\dev\\serenade\\client\\node_modules\\serenade-driver\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/nodeReuse:false',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]

  driver.cpp
C:\Users\User\AppData\Local\node-gyp\Cache\22.20.0\include\node\js_native_api.h(6,10): error C1083: Cannot open include file: 'stddef.h': No such file or directory [C:\Users\User\dev\serenade\client\node_modules\serenade-driver\build\ 
serenade-driver.vcxproj]
  (compiling source file '../src/driver.cpp')

gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\User\AppData\Local\npm-cache\_npx\c463d28440264a05\node_modules\node-gyp\lib\build.js:219:23)
gyp ERR! stack at ChildProcess.emit (node:events:519:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Windows_NT 10.0.26200
gyp ERR! command "C:\\nvm4w\\nodejs\\node.exe" "C:\\Users\\User\\AppData\\Local\\npm-cache\\_npx\\c463d28440264a05\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\User\dev\serenade\client\node_modules\serenade-driver
gyp ERR! node -v v22.20.0
gyp ERR! node-gyp -v v12.1.0
gyp ERR! not ok

But it does exist: C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\stddef.h

主要言語
Python
スター
10.7k
フォーク
1.9k
平均マージ
1日 4時間
マージ済み PR(30日)
5

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodejs/node-gyp のほかの issue

nodejs/node-gyp の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。