We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-gyp issues compiling Canvas:
npm ERR! gyp info using node-gyp@9.4.0 npm ERR! gyp info using node@20.9.0 | win32 | x64 npm ERR! gyp info find Python using Python version 3.12.0 found at npm ERR! gyp info find VS using VS2022 (17.7.34221.43) found at: npm ERR! Traceback (most recent call last): npm ERR! File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 42, in <module> npm ERR! import gyp # noqa: E402 npm ERR! ^^^^^^^^^^ npm ERR! File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 9, in <module> npm ERR! import gyp.input npm ERR! File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 19, in <module> npm ERR! from distutils.version import StrictVersion npm ERR! ModuleNotFoundError: No module named 'distutils' npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:325:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) npm ERR! gyp ERR! System Windows_NT 10.0.22621 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=D:\\DEVL\\Code\\WEB\app\\hashlips_art_engine\\node_modules\\canvas\\build\\Release\\canvas.node" "--module_name=canvas" "--module_path=D:\\DEVL\\Code\\WEB\\app\\hashlips_art_engine\\node_modules\\canvas\\build\\Release" "--napi_vrsion=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115" npm ERR! gyp ERR! cwd D:\DEVL\Code\WEB\app\hashlips_art_engine\node_modules\canvas npm ERR! gyp ERR! node -v v20.9.0 npm ERR! gyp ERR! node-gyp -v v9.4.0 npm ERR! gyp ERR! not ok npm ERR! node-pre-gyp ERR! build error
The text was updated successfully, but these errors were encountered:
I ran npm install canvas@2.11.2 first and it is happy now.
npm install canvas@2.11.2
Sorry, something went wrong.
No branches or pull requests
node-gyp issues compiling Canvas:
The text was updated successfully, but these errors were encountered: