akira-cn / node-canvas-webgl

Integration of node-canvas and headless-gl.
MIT License
102 stars 24 forks source link

npm ERR! code 1... #6

Closed Timtaran closed 5 months ago

Timtaran commented 3 years ago

OS: Ubuntu 20.04

npm ERR! code 1
npm ERR! path /home/ubuntu/node_modules/gl
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@16.6.1 | linux | x64
npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
npm ERR! (node:2047871) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/home/ubuntu/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/ubuntu/node_modules/gl/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/ubuntu/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/ubuntu/.cache/node-gyp/16.6.1/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/ubuntu/.cache/node-gyp/16.6.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/ubuntu/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/ubuntu/.cache/node-gyp/16.6.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/ubuntu/node_modules/gl',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! /bin/sh: 1: python: not found
npm ERR! gyp: Call to 'python commit_id.py check ..' returned exit status 127 while in angle/src/angle.gyp. while loading dependencies of binding.gyp while trying to load binding.gyp
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 (/home/ubuntu/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.4.0-1043-oracle
npm ERR! gyp ERR! command "/usr/bin/node" "/home/ubuntu/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/ubuntu/node_modules/gl
npm ERR! gyp ERR! node -v v16.6.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2021-08-15T06_38_40_355Z-debug.log

/home/ubuntu/.npm/_logs/2021-08-15T06_38_40_355Z-debug.log:

0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'node-canvas-webgl' ]
1 info using npm@7.20.3
2 info using node@v16.6.1
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 3ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/home/ubuntu/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/usr/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:credentials Completed in 2ms
16 timing config:load:setEnvs Completed in 0ms
17 timing config:load Completed in 9ms
18 timing npm:load:configload Completed in 10ms
19 timing npm:load:setTitle Completed in 0ms
20 timing npm:load:setupLog Completed in 1ms
21 timing npm:load:cleanupLog Completed in 3ms
22 timing npm:load:configScope Completed in 0ms
23 timing npm:load:projectScope Completed in 0ms
24 timing npm:load Completed in 15ms
25 timing config:load:flatten Completed in 3ms
26 timing arborist:ctor Completed in 1ms
27 timing idealTree:init Completed in 560ms
28 timing idealTree:userRequests Completed in 2ms
29 silly idealTree buildDeps
30 silly fetch manifest node-canvas-webgl@*
31 timing arborist:ctor Completed in 0ms
32 http fetch GET 200 https://registry.npmjs.org/node-canvas-webgl 1084ms (cache revalidated)
33 silly placeDep ROOT node-canvas-webgl@0.2.6 OK for:  want: *
34 silly fetch manifest gl@^4.4.0
35 http fetch GET 200 https://registry.npmjs.org/gl 22ms (cache revalidated)
36 timing idealTree:#root Completed in 1117ms
37 silly placeDep ROOT gl@4.9.0 OK for: node-canvas-webgl@0.2.6 want: ^4.4.0
38 silly fetch manifest bindings@^1.5.0
39 silly fetch manifest bit-twiddle@^1.0.2
40 silly fetch manifest glsl-tokenizer@^2.0.2
41 silly fetch manifest node-abi@^2.18.0
42 silly fetch manifest node-gyp@^7.1.0
43 silly fetch manifest prebuild-install@^5.3.5
44 http fetch GET 200 https://registry.npmjs.org/bindings 78ms (cache revalidated)
45 http fetch GET 200 https://registry.npmjs.org/prebuild-install 92ms (cache revalidated)
46 http fetch GET 200 https://registry.npmjs.org/bit-twiddle 102ms (cache revalidated)
47 http fetch GET 200 https://registry.npmjs.org/glsl-tokenizer 103ms (cache revalidated)
48 http fetch GET 200 https://registry.npmjs.org/node-abi 104ms (cache revalidated)
49 http fetch GET 200 https://registry.npmjs.org/node-gyp 111ms (cache revalidated)
50 timing idealTree:node_modules/node-canvas-webgl Completed in 122ms
51 silly placeDep ROOT bindings@1.5.0 OK for: gl@4.9.0 want: ^1.5.0
52 silly placeDep ROOT bit-twiddle@1.0.2 OK for: gl@4.9.0 want: ^1.0.2
53 silly placeDep ROOT glsl-tokenizer@2.1.5 OK for: gl@4.9.0 want: ^2.0.2
54 silly placeDep ROOT node-abi@2.30.0 OK for: gl@4.9.0 want: ^2.18.0
55 silly placeDep ROOT node-gyp@7.1.2 OK for: gl@4.9.0 want: ^7.1.0
56 silly placeDep ROOT prebuild-install@5.3.6 OK for: gl@4.9.0 want: ^5.3.5
57 silly fetch manifest file-uri-to-path@1.0.0
58 silly fetch manifest through2@^0.6.3
59 silly fetch manifest env-paths@^2.2.0
60 silly fetch manifest graceful-fs@^4.2.3
61 silly fetch manifest semver@^7.3.2
62 silly fetch manifest which@^2.0.2
63 silly fetch manifest expand-template@^2.0.3
64 silly fetch manifest github-from-package@0.0.0
65 silly fetch manifest minimist@^1.2.3
66 silly fetch manifest mkdirp-classic@^0.5.3
67 silly fetch manifest napi-build-utils@^1.0.1
68 silly fetch manifest noop-logger@^0.1.1
69 silly fetch manifest pump@^3.0.0
70 silly fetch manifest rc@^1.2.7
71 silly fetch manifest tar-fs@^2.0.0
72 silly fetch manifest which-pm-runs@^1.0.0
73 http fetch GET 200 https://registry.npmjs.org/semver 212ms (cache hit)
74 http fetch GET 200 https://registry.npmjs.org/graceful-fs 218ms (cache revalidated)
75 http fetch GET 200 https://registry.npmjs.org/env-paths 219ms (cache revalidated)
76 http fetch GET 200 https://registry.npmjs.org/file-uri-to-path 221ms (cache revalidated)
77 http fetch GET 200 https://registry.npmjs.org/through2 222ms (cache revalidated)
78 http fetch GET 200 https://registry.npmjs.org/github-from-package 228ms (cache revalidated)
79 http fetch GET 200 https://registry.npmjs.org/minimist 319ms (cache revalidated)
80 http fetch GET 200 https://registry.npmjs.org/which 321ms (cache revalidated)
81 http fetch GET 200 https://registry.npmjs.org/pump 320ms (cache revalidated)
82 http fetch GET 200 https://registry.npmjs.org/rc 320ms (cache revalidated)
83 http fetch GET 200 https://registry.npmjs.org/napi-build-utils 322ms (cache revalidated)
84 http fetch GET 200 https://registry.npmjs.org/tar-fs 320ms (cache revalidated)
85 http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 323ms (cache revalidated)
86 http fetch GET 200 https://registry.npmjs.org/which-pm-runs 321ms (cache revalidated)
87 http fetch GET 200 https://registry.npmjs.org/noop-logger 323ms (cache revalidated)
88 http fetch GET 200 https://registry.npmjs.org/expand-template 872ms (cache revalidated)
89 timing idealTree:node_modules/gl Completed in 935ms
90 silly placeDep ROOT file-uri-to-path@1.0.0 OK for: bindings@1.5.0 want: 1.0.0
91 timing idealTree:node_modules/bindings Completed in 2ms
92 timing idealTree:node_modules/bit-twiddle Completed in 0ms
93 timing idealTree:node_modules/file-uri-to-path Completed in 0ms
94 silly placeDep ROOT through2@0.6.5 OK for: glsl-tokenizer@2.1.5 want: ^0.6.3
95 silly fetch manifest readable-stream@>=1.0.33-1 <1.1.0-0
96 silly fetch manifest xtend@>=4.0.0 <4.1.0-0
97 http fetch GET 200 https://registry.npmjs.org/readable-stream 10ms (cache hit)
98 http fetch GET 200 https://registry.npmjs.org/xtend 31ms (cache revalidated)
99 timing idealTree:node_modules/glsl-tokenizer Completed in 34ms
100 timing idealTree:node_modules/node-abi Completed in 0ms
101 silly placeDep ROOT env-paths@2.2.1 OK for: node-gyp@7.1.2 want: ^2.2.0
102 silly placeDep ROOT graceful-fs@4.2.8 OK for: node-gyp@7.1.2 want: ^4.2.3
103 silly placeDep node_modules/node-gyp semver@7.3.5 OK for: node-gyp@7.1.2 want: ^7.3.2
104 silly placeDep ROOT which@2.0.2 OK for: node-gyp@7.1.2 want: ^2.0.2
105 silly fetch manifest isexe@^2.0.0
106 http fetch GET 200 https://registry.npmjs.org/isexe 21ms (cache revalidated)
107 timing idealTree:node_modules/node-gyp Completed in 28ms
108 timing idealTree:node_modules/env-paths Completed in 0ms
109 timing idealTree:node_modules/graceful-fs Completed in 0ms
110 silly placeDep ROOT expand-template@2.0.3 OK for: prebuild-install@5.3.6 want: ^2.0.3
111 silly placeDep ROOT github-from-package@0.0.0 OK for: prebuild-install@5.3.6 want: 0.0.0
112 silly placeDep ROOT minimist@1.2.5 OK for: prebuild-install@5.3.6 want: ^1.2.3
113 silly placeDep ROOT mkdirp-classic@0.5.3 OK for: prebuild-install@5.3.6 want: ^0.5.3
114 silly placeDep ROOT napi-build-utils@1.0.2 OK for: prebuild-install@5.3.6 want: ^1.0.1
115 silly placeDep ROOT noop-logger@0.1.1 OK for: prebuild-install@5.3.6 want: ^0.1.1
116 silly placeDep ROOT pump@3.0.0 OK for: prebuild-install@5.3.6 want: ^3.0.0
117 silly placeDep ROOT rc@1.2.8 OK for: prebuild-install@5.3.6 want: ^1.2.7
118 silly placeDep ROOT tar-fs@2.1.1 OK for: prebuild-install@5.3.6 want: ^2.0.0
119 silly placeDep ROOT which-pm-runs@1.0.0 OK for: prebuild-install@5.3.6 want: ^1.0.0
120 silly fetch manifest end-of-stream@^1.1.0
121 silly fetch manifest deep-extend@^0.6.0
122 silly fetch manifest ini@~1.3.0
123 silly fetch manifest strip-json-comments@~2.0.1
124 silly fetch manifest chownr@^1.1.1
125 silly fetch manifest tar-stream@^2.1.4
126 http fetch GET 200 https://registry.npmjs.org/chownr 47ms (cache hit)
127 http fetch GET 200 https://registry.npmjs.org/strip-json-comments 59ms (cache revalidated)
128 http fetch GET 200 https://registry.npmjs.org/deep-extend 72ms (cache revalidated)
129 http fetch GET 200 https://registry.npmjs.org/ini 73ms (cache revalidated)
130 http fetch GET 200 https://registry.npmjs.org/tar-stream 71ms (cache revalidated)
131 http fetch GET 200 https://registry.npmjs.org/end-of-stream 76ms (cache revalidated)
132 timing idealTree:node_modules/prebuild-install Completed in 88ms
133 timing idealTree:node_modules/expand-template Completed in 0ms
134 timing idealTree:node_modules/github-from-package Completed in 0ms
135 timing idealTree:node_modules/minimist Completed in 0ms
136 timing idealTree:node_modules/mkdirp-classic Completed in 0ms
137 timing idealTree:node_modules/napi-build-utils Completed in 0ms
138 timing idealTree:node_modules/noop-logger Completed in 0ms
139 silly placeDep ROOT end-of-stream@1.4.4 OK for: pump@3.0.0 want: ^1.1.0
140 timing idealTree:node_modules/pump Completed in 1ms
141 timing idealTree:node_modules/end-of-stream Completed in 0ms
142 silly placeDep ROOT deep-extend@0.6.0 OK for: rc@1.2.8 want: ^0.6.0
143 silly placeDep ROOT ini@1.3.8 OK for: rc@1.2.8 want: ~1.3.0
144 silly placeDep ROOT strip-json-comments@2.0.1 OK for: rc@1.2.8 want: ~2.0.1
145 timing idealTree:node_modules/rc Completed in 3ms
146 timing idealTree:node_modules/deep-extend Completed in 0ms
147 timing idealTree:node_modules/ini Completed in 0ms
148 timing idealTree:node_modules/strip-json-comments Completed in 0ms
149 silly placeDep node_modules/tar-fs chownr@1.1.4 OK for: tar-fs@2.1.1 want: ^1.1.1
150 silly placeDep ROOT tar-stream@2.2.0 OK for: tar-fs@2.1.1 want: ^2.1.4
151 silly fetch manifest bl@^4.0.3
152 silly fetch manifest fs-constants@^1.0.0
153 http fetch GET 200 https://registry.npmjs.org/fs-constants 26ms (cache revalidated)
154 http fetch GET 200 https://registry.npmjs.org/bl 84ms (cache revalidated)
155 timing idealTree:node_modules/tar-fs Completed in 89ms
156 silly placeDep ROOT bl@4.1.0 OK for: tar-stream@2.2.0 want: ^4.0.3
157 silly placeDep ROOT fs-constants@1.0.0 OK for: tar-stream@2.2.0 want: ^1.0.0
158 silly fetch manifest buffer@^5.5.0
159 http fetch GET 200 https://registry.npmjs.org/buffer 23ms (cache revalidated)
160 timing idealTree:node_modules/tar-stream Completed in 28ms
161 silly placeDep ROOT buffer@5.7.1 OK for: bl@4.1.0 want: ^5.5.0
162 silly fetch manifest base64-js@^1.3.1
163 silly fetch manifest ieee754@^1.1.13
164 http fetch GET 200 https://registry.npmjs.org/base64-js 20ms (cache revalidated)
165 http fetch GET 200 https://registry.npmjs.org/ieee754 40ms (cache revalidated)
166 timing idealTree:node_modules/bl Completed in 42ms
167 silly placeDep ROOT base64-js@1.5.1 OK for: buffer@5.7.1 want: ^1.3.1
168 silly placeDep ROOT ieee754@1.2.1 OK for: buffer@5.7.1 want: ^1.1.13
169 timing idealTree:node_modules/buffer Completed in 2ms
170 timing idealTree:node_modules/base64-js Completed in 0ms
171 timing idealTree:node_modules/fs-constants Completed in 0ms
172 timing idealTree:node_modules/ieee754 Completed in 0ms
173 silly placeDep node_modules/through2 readable-stream@1.0.34 OK for: through2@0.6.5 want: >=1.0.33-1 <1.1.0-0
174 silly placeDep ROOT xtend@4.0.2 OK for: through2@0.6.5 want: >=4.0.0 <4.1.0-0
175 silly fetch manifest isarray@0.0.1
176 silly fetch manifest string_decoder@~0.10.x
177 http fetch GET 200 https://registry.npmjs.org/string_decoder 7ms (cache hit)
178 http fetch GET 200 https://registry.npmjs.org/isarray 10ms (cache hit)
179 timing idealTree:node_modules/through2 Completed in 15ms
180 silly placeDep ROOT isexe@2.0.0 OK for: which@2.0.2 want: ^2.0.0
181 timing idealTree:node_modules/which Completed in 1ms
182 timing idealTree:node_modules/isexe Completed in 0ms
183 timing idealTree:node_modules/which-pm-runs Completed in 0ms
184 timing idealTree:node_modules/xtend Completed in 0ms
185 timing idealTree:node_modules/node-gyp/node_modules/semver Completed in 0ms
186 timing idealTree:node_modules/tar-fs/node_modules/chownr Completed in 0ms
187 silly placeDep node_modules/through2 isarray@0.0.1 OK for: readable-stream@1.0.34 want: 0.0.1
188 silly placeDep node_modules/through2 string_decoder@0.10.31 OK for: readable-stream@1.0.34 want: ~0.10.x
189 timing idealTree:node_modules/through2/node_modules/readable-stream Completed in 3ms
190 timing idealTree:node_modules/through2/node_modules/isarray Completed in 0ms
191 timing idealTree:node_modules/through2/node_modules/string_decoder Completed in 0ms
192 timing idealTree:buildDeps Completed in 2517ms
193 timing idealTree:fixDepFlags Completed in 8ms
194 timing idealTree Completed in 3161ms
195 timing reify:loadTrees Completed in 3161ms
196 timing reify:diffTrees Completed in 11ms
197 silly reify moves {}
198 timing reify:retireShallow Completed in 1ms
199 timing reify:createSparse Completed in 6ms
200 timing reify:loadBundles Completed in 0ms
201 silly audit bulk request {
201 silly audit   '@azure/msal-common': [ '4.5.1' ],
201 silly audit   '@azure/msal-node': [ '1.3.0' ],
201 silly audit   '@mapbox/node-pre-gyp': [ '1.0.5' ],
201 silly audit   semver: [ '7.3.5', '6.3.0', '5.7.1' ],
201 silly audit   '@tweenjs/tween.js': [ '18.6.4' ],
201 silly audit   '@types/component-emitter': [ '1.2.10' ],
201 silly audit   '@types/cookie': [ '0.4.1' ],
201 silly audit   '@types/cors': [ '2.8.12' ],
201 silly audit   '@types/node': [ '16.6.1' ],
201 silly audit   '@xboxreplay/errors': [ '0.1.0' ],
201 silly audit   '@xboxreplay/xboxlive-auth': [ '3.3.3' ],
201 silly audit   abbrev: [ '1.1.1' ],
201 silly audit   accepts: [ '1.3.7' ],
201 silly audit   'aes-js': [ '3.1.2' ],
201 silly audit   'agent-base': [ '6.0.2' ],
201 silly audit   ajv: [ '6.12.6' ],
201 silly audit   'ansi-regex': [ '2.1.1' ],
201 silly audit   aproba: [ '1.2.0' ],
201 silly audit   'are-we-there-yet': [ '1.1.5' ],
201 silly audit   'readable-stream': [ '2.3.7', '3.6.0', '1.0.34' ],
201 silly audit   'safe-buffer': [ '5.1.2', '5.2.1' ],
201 silly audit   string_decoder: [ '1.1.1', '1.3.0', '0.10.31' ],
201 silly audit   'array-flatten': [ '1.1.1' ],
201 silly audit   asn1: [ '0.2.3' ],
201 silly audit   'assert-plus': [ '1.0.0' ],
201 silly audit   asynckit: [ '0.4.0' ],
201 silly audit   'aws-sign2': [ '0.7.0' ],
201 silly audit   aws4: [ '1.11.0' ],
201 silly audit   axios: [ '0.21.1' ],
201 silly audit   backo2: [ '1.0.2' ],
201 silly audit   'balanced-match': [ '1.0.2' ],
201 silly audit   'base64-arraybuffer': [ '0.1.4' ],
201 silly audit   base64id: [ '2.0.0' ],
201 silly audit   'bcrypt-pbkdf': [ '1.0.2' ],
201 silly audit   'body-parser': [ '1.19.0' ],
201 silly audit   bytes: [ '3.1.0', '3.0.0' ],
201 silly audit   debug: [ '2.6.9', '4.3.2' ],
201 silly audit   ms: [ '2.0.0', '2.1.2', '2.1.1' ],
201 silly audit   'brace-expansion': [ '1.1.11' ],
201 silly audit   'buffer-equal': [ '1.0.0' ],
201 silly audit   'buffer-equal-constant-time': [ '1.0.1' ],
201 silly audit   canvas: [ '2.8.0' ],
201 silly audit   caseless: [ '0.12.0' ],
201 silly audit   child_process: [ '1.0.2' ],
201 silly audit   chownr: [ '2.0.0', '1.1.4' ],
201 silly audit   'code-point-at': [ '1.1.0' ],
201 silly audit   'combined-stream': [ '1.0.8' ],
201 silly audit   commander: [ '2.20.3' ],
201 silly audit   'component-emitter': [ '1.3.0' ],
201 silly audit   compressible: [ '2.0.18' ],
201 silly audit   compression: [ '1.7.4' ],
201 silly audit   'concat-map': [ '0.0.1' ],
201 silly audit   'console-control-strings': [ '1.1.0' ],
201 silly audit   'content-disposition': [ '0.5.3' ],
201 silly audit   'content-type': [ '1.0.4' ],
201 silly audit   cookie: [ '0.4.0', '0.4.1' ],
201 silly audit   'cookie-signature': [ '1.0.6' ],
201 silly audit   'core-util-is': [ '1.0.2' ],
201 silly audit   cors: [ '2.8.5' ],
201 silly audit   dashdash: [ '1.14.1' ],
201 silly audit   'decompress-response': [ '4.2.1' ],
201 silly audit   'delayed-stream': [ '1.0.0' ],
201 silly audit   delegates: [ '1.0.0' ],
201 silly audit   depd: [ '1.1.2' ],
201 silly audit   destroy: [ '1.0.4' ],
201 silly audit   'detect-libc': [ '1.0.3' ],
201 silly audit   'discontinuous-range': [ '1.0.0' ],
201 silly audit   'ecc-jsbn': [ '0.1.2' ],
201 silly audit   'ecdsa-sig-formatter': [ '1.0.11' ],
201 silly audit   'ee-first': [ '1.1.1' ],
201 silly audit   encodeurl: [ '1.0.2' ],
201 silly audit   'endian-toggle': [ '0.0.0' ],
201 silly audit   'engine.io': [ '5.1.1' ],
201 silly audit   'engine.io-client': [ '5.1.2' ],
201 silly audit   'engine.io-parser': [ '4.0.2' ],
201 silly audit   'escape-html': [ '1.0.3' ],
201 silly audit   etag: [ '1.8.1' ],
201 silly audit   express: [ '4.17.1' ],
201 silly audit   extend: [ '3.0.2' ],
201 silly audit   extsprintf: [ '1.3.0' ],
201 silly audit   'fast-deep-equal': [ '3.1.3' ],
201 silly audit   'fast-json-stable-stringify': [ '2.1.0' ],
201 silly audit   finalhandler: [ '1.1.2' ],
201 silly audit   'follow-redirects': [ '1.14.1' ],
201 silly audit   'forever-agent': [ '0.6.1' ],
201 silly audit   'form-data': [ '2.3.3' ],
201 silly audit   forwarded: [ '0.2.0' ],
201 silly audit   fresh: [ '0.5.2' ],
201 silly audit   'fs-minipass': [ '2.1.0' ],
201 silly audit   'fs.realpath': [ '1.0.0' ],
201 silly audit   gauge: [ '2.7.4' ],
201 silly audit   getpass: [ '0.1.7' ],
201 silly audit   gifencoder: [ '2.0.1' ],
201 silly audit   glob: [ '7.1.7' ],
201 silly audit   'har-schema': [ '2.0.0' ],
201 silly audit   'har-validator': [ '5.1.5' ],
201 silly audit   'has-cors': [ '1.1.0' ],
201 silly audit   'has-unicode': [ '2.0.1' ],
201 silly audit   'http-errors': [ '1.7.2' ],
201 silly audit   inherits: [ '2.0.3', '2.0.4' ],
201 silly audit   'http-signature': [ '1.2.0' ],
201 silly audit   'https-proxy-agent': [ '5.0.0' ],
201 silly audit   'iconv-lite': [ '0.4.24' ],
201 silly audit   inflight: [ '1.0.6' ],
201 silly audit   'ipaddr.js': [ '1.9.1' ],
201 silly audit   'is-fullwidth-code-point': [ '1.0.0' ],
201 silly audit   'is-typedarray': [ '1.0.0' ],
201 silly audit   isarray: [ '1.0.0', '0.0.1' ],
201 silly audit   isstream: [ '0.1.2' ],
201 silly audit   jsbn: [ '0.1.1' ],
201 silly audit   'json-schema': [ '0.2.3' ],
201 silly audit   'json-schema-traverse': [ '0.4.1' ],
201 silly audit   'json-stringify-safe': [ '5.0.1' ],
201 silly audit   jsonwebtoken: [ '8.5.1' ],
201 silly audit   jsprim: [ '1.4.1' ],
201 silly audit   jwa: [ '1.4.1' ],
201 silly audit   jws: [ '3.2.2' ],
201 silly audit   'lodash.get': [ '4.4.2' ],
201 silly audit   'lodash.includes': [ '4.3.0' ],
201 silly audit   'lodash.isboolean': [ '3.0.3' ],
201 silly audit   'lodash.isinteger': [ '4.0.4' ],
201 silly audit   'lodash.isnumber': [ '3.0.3' ],
201 silly audit   'lodash.isplainobject': [ '4.0.6' ],
201 silly audit   'lodash.isstring': [ '4.0.1' ],
201 silly audit   'lodash.merge': [ '4.6.2' ],
201 silly audit   'lodash.once': [ '4.1.1' ],
201 silly audit   'lodash.reduce': [ '4.6.0' ],
201 silly audit   'lru-cache': [ '6.0.0' ],
201 silly audit   macaddress: [ '0.5.2' ],
201 silly audit   'make-dir': [ '3.1.0' ],
201 silly audit   'media-typer': [ '0.3.0' ],
201 silly audit   'merge-descriptors': [ '1.0.1' ],
201 silly audit   methods: [ '1.1.2' ],
201 silly audit   mime: [ '1.6.0' ],
201 silly audit   'mime-db': [ '1.49.0' ],
201 silly audit   'mime-types': [ '2.1.32' ],
201 silly audit   'mimic-response': [ '2.1.0' ],
201 silly audit   'minecraft-data': [ '2.89.4' ],
201 silly audit   'minecraft-folder-path': [ '1.2.0' ],
201 silly audit   'minecraft-protocol': [ '1.25.0' ],
201 silly audit   mineflayer: [ '3.9.0' ],
201 silly audit   'mineflayer-pathfinder': [ '1.7.0' ],
201 silly audit   minimatch: [ '3.0.4' ],
201 silly audit   minipass: [ '3.1.3' ],
201 silly audit   minizlib: [ '2.1.2' ],
201 silly audit   mkdirp: [ '1.0.4' ],
201 silly audit   mojangson: [ '2.0.2' ],
201 silly audit   moo: [ '0.5.1' ],
201 silly audit   nan: [ '2.15.0' ],
201 silly audit   nearley: [ '2.20.1' ],
201 silly audit   negotiator: [ '0.6.2' ],
201 silly audit   net: [ '1.0.2' ],
201 silly audit   'node-fetch': [ '2.6.1' ],
201 silly audit   'node-rsa': [ '0.4.2' ],
201 silly audit   nopt: [ '5.0.0' ],
201 silly audit   npmlog: [ '4.1.2' ],
201 silly audit   'number-is-nan': [ '1.0.1' ],
201 silly audit   'oauth-sign': [ '0.9.0' ],
201 silly audit   'object-assign': [ '4.1.1' ],
201 silly audit   'on-finished': [ '2.3.0' ],
201 silly audit   'on-headers': [ '1.0.2' ],
201 silly audit   once: [ '1.4.0' ],
201 silly audit   parseqs: [ '0.0.6' ],
201 silly audit   parseuri: [ '0.0.6' ],
201 silly audit   parseurl: [ '1.3.3' ],
201 silly audit   'path-is-absolute': [ '1.0.1' ],
201 silly audit   'path-to-regexp': [ '0.1.7' ],
201 silly audit   'performance-now': [ '2.1.0' ],
201 silly audit   'prismarine-biome': [ '1.1.1' ],
201 silly audit   'prismarine-block': [ '1.10.1' ],
201 silly audit   'prismarine-chat': [ '1.1.0' ],
201 silly audit   'prismarine-chunk': [ '1.22.0' ],
201 silly audit   'prismarine-entity': [ '1.2.0' ],
201 silly audit   'prismarine-item': [ '1.10.0' ],
201 silly audit   'prismarine-nbt': [ '1.6.0' ],
201 silly audit   'prismarine-physics': [ '1.3.0' ],
201 silly audit   'prismarine-recipe': [ '1.1.0' ],
201 silly audit   'prismarine-viewer': [ '1.19.3' ],
201 silly audit   three: [ '0.126.1', '0.131.3' ],
201 silly audit   'prismarine-windows': [ '2.2.0' ],
201 silly audit   'prismarine-world': [ '3.6.0' ],
201 silly audit   'process-nextick-args': [ '2.0.1' ],
201 silly audit   protodef: [ '1.14.0' ],
201 silly audit   'protodef-validator': [ '1.3.1' ],
201 silly audit   'proxy-addr': [ '2.0.7' ],
201 silly audit   psl: [ '1.8.0' ],
201 silly audit   punycode: [ '2.1.1' ],
201 silly audit   qs: [ '6.7.0', '6.5.2' ],
201 silly audit   'railroad-diagrams': [ '1.0.0' ],
201 silly audit   randexp: [ '0.4.6' ],
201 silly audit   'range-parser': [ '1.2.1' ],
201 silly audit   'raw-body': [ '2.4.0' ],
201 silly audit   request: [ '2.88.2' ],
201 silly audit   uuid: [ '3.4.0', '8.3.2' ],
201 silly audit   ret: [ '0.1.15' ],
201 silly audit   rimraf: [ '3.0.2' ],
201 silly audit   'safer-buffer': [ '2.1.2' ],
201 silly audit   send: [ '0.17.1' ],
201 silly audit   'serve-static': [ '1.14.1' ],
201 silly audit   'set-blocking': [ '2.0.0' ],
201 silly audit   setprototypeof: [ '1.1.1' ],
201 silly audit   'signal-exit': [ '3.0.3' ],
201 silly audit   'simple-concat': [ '1.0.1' ],
201 silly audit   'simple-get': [ '3.1.0' ],
201 silly audit   'smart-buffer': [ '4.1.0' ],
201 silly audit   'socket.io': [ '4.1.3' ],
201 silly audit   'socket.io-adapter': [ '2.3.1' ],
201 silly audit   'socket.io-client': [ '4.1.3' ],
201 silly audit   'socket.io-parser': [ '4.0.4' ],
201 silly audit   'sprintf-js': [ '1.1.2' ],
201 silly audit   sshpk: [ '1.16.1' ],
201 silly audit   statuses: [ '1.5.0' ],
201 silly audit   'string-width': [ '1.0.2' ],
201 silly audit   'strip-ansi': [ '3.0.1' ],
201 silly audit   tar: [ '6.1.8' ],
201 silly audit   'three.meshline': [ '1.3.0' ],
201 silly audit   toidentifier: [ '1.0.0' ],
201 silly audit   'tough-cookie': [ '2.5.0' ],
201 silly audit   'tunnel-agent': [ '0.6.0' ],
201 silly audit   tweetnacl: [ '0.14.5' ],
201 silly audit   'type-is': [ '1.6.18' ],
201 silly audit   'typed-emitter': [ '1.3.1' ],
201 silly audit   uint4: [ '0.1.2' ],
201 silly audit   unpipe: [ '1.0.0' ],
201 silly audit   'uri-js': [ '4.4.1' ],
201 silly audit   'util-deprecate': [ '1.0.2' ],
201 silly audit   'utils-merge': [ '1.0.1' ],
201 silly audit   'uuid-1345': [ '1.0.2' ],
201 silly audit   vary: [ '1.1.2' ],
201 silly audit   vec3: [ '0.1.7' ],
201 silly audit   verror: [ '1.10.0' ],
201 silly audit   'wide-align': [ '1.1.3' ],
201 silly audit   wrappy: [ '1.0.2' ],
201 silly audit   ws: [ '7.4.6' ],
201 silly audit   yallist: [ '4.0.0' ],
201 silly audit   yeast: [ '0.1.2' ],
201 silly audit   yggdrasil: [ '1.6.0' ],
201 silly audit   'node-canvas-webgl': [ '0.2.6' ],
201 silly audit   gl: [ '4.9.0' ],
201 silly audit   bindings: [ '1.5.0' ],
201 silly audit   'bit-twiddle': [ '1.0.2' ],
201 silly audit   'glsl-tokenizer': [ '2.1.5' ],
201 silly audit   'node-abi': [ '2.30.0' ],
201 silly audit   'node-gyp': [ '7.1.2' ],
201 silly audit   'prebuild-install': [ '5.3.6' ],
201 silly audit   'file-uri-to-path': [ '1.0.0' ],
201 silly audit   through2: [ '0.6.5' ],
201 silly audit   'env-paths': [ '2.2.1' ],
201 silly audit   'graceful-fs': [ '4.2.8' ],
201 silly audit   which: [ '2.0.2' ],
201 silly audit   'expand-template': [ '2.0.3' ],
201 silly audit   'github-from-package': [ '0.0.0' ],
201 silly audit   minimist: [ '1.2.5' ],
201 silly audit   'mkdirp-classic': [ '0.5.3' ],
201 silly audit   'napi-build-utils': [ '1.0.2' ],
201 silly audit   'noop-logger': [ '0.1.1' ],
201 silly audit   pump: [ '3.0.0' ],
201 silly audit   rc: [ '1.2.8' ],
201 silly audit   'tar-fs': [ '2.1.1' ],
201 silly audit   'which-pm-runs': [ '1.0.0' ],
201 silly audit   'end-of-stream': [ '1.4.4' ],
201 silly audit   'deep-extend': [ '0.6.0' ],
201 silly audit   ini: [ '1.3.8' ],
201 silly audit   'strip-json-comments': [ '2.0.1' ],
201 silly audit   'tar-stream': [ '2.2.0' ],
201 silly audit   bl: [ '4.1.0' ],
201 silly audit   'fs-constants': [ '1.0.0' ],
201 silly audit   buffer: [ '5.7.1' ],
201 silly audit   'base64-js': [ '1.5.1' ],
201 silly audit   ieee754: [ '1.2.1' ],
201 silly audit   xtend: [ '4.0.2' ],
201 silly audit   isexe: [ '2.0.0' ]
201 silly audit }
202 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 1272ms
203 timing auditReport:getReport Completed in 1279ms
204 silly audit report {}
205 timing auditReport:init Completed in 0ms
206 timing reify:audit Completed in 1280ms
207 timing reifyNode:node_modules/strip-json-comments Completed in 1303ms
208 timing reifyNode:node_modules/ini Completed in 1303ms
209 timing reifyNode:node_modules/end-of-stream Completed in 1302ms
210 timing reifyNode:node_modules/which-pm-runs Completed in 1302ms
211 timing reifyNode:node_modules/tar-fs/node_modules/chownr Completed in 1303ms
212 timing reifyNode:node_modules/mkdirp-classic Completed in 1302ms
213 timing reifyNode:node_modules/bindings Completed in 1301ms
214 timing reifyNode:node_modules/ieee754 Completed in 1372ms
215 timing reifyNode:node_modules/fs-constants Completed in 1372ms
216 timing reifyNode:node_modules/env-paths Completed in 1305ms
217 timing reifyNode:node_modules/through2 Completed in 1305ms
218 timing reifyNode:node_modules/through2/node_modules/string_decoder Completed in 1304ms
219 timing reifyNode:node_modules/base64-js Completed in 1375ms
220 timing reifyNode:node_modules/expand-template Completed in 1307ms
221 timing reifyNode:node_modules/through2/node_modules/isarray Completed in 1306ms
222 timing reifyNode:node_modules/xtend Completed in 1378ms
223 timing reifyNode:node_modules/deep-extend Completed in 1311ms
224 timing reifyNode:node_modules/pump Completed in 1310ms
225 timing reifyNode:node_modules/napi-build-utils Completed in 1310ms
226 timing reifyNode:node_modules/which Completed in 1309ms
227 timing reifyNode:node_modules/isexe Completed in 1384ms
228 timing reifyNode:node_modules/noop-logger Completed in 1315ms
229 timing reifyNode:node_modules/graceful-fs Completed in 1315ms
230 timing reifyNode:node_modules/bit-twiddle Completed in 1313ms
231 timing reifyNode:node_modules/tar-stream Completed in 1384ms
232 timing reifyNode:node_modules/file-uri-to-path Completed in 1316ms
233 timing reifyNode:node_modules/buffer Completed in 1389ms
234 timing reifyNode:node_modules/github-from-package Completed in 1402ms
235 timing reifyNode:node_modules/glsl-tokenizer Completed in 1401ms
236 timing reifyNode:node_modules/rc Completed in 1404ms
237 timing reifyNode:node_modules/bl Completed in 1471ms
238 timing reifyNode:node_modules/node-abi Completed in 1403ms
239 timing reifyNode:node_modules/through2/node_modules/readable-stream Completed in 1405ms
240 timing reifyNode:node_modules/prebuild-install Completed in 1405ms
241 timing reifyNode:node_modules/minimist Completed in 1409ms
242 timing reifyNode:node_modules/tar-fs Completed in 1419ms
243 timing reifyNode:node_modules/node-gyp/node_modules/semver Completed in 1418ms
244 timing reifyNode:node_modules/node-canvas-webgl Completed in 1598ms
245 timing reifyNode:node_modules/node-gyp Completed in 1697ms
246 timing reifyNode:node_modules/gl Completed in 2806ms
247 timing reify:unpack Completed in 2879ms
248 timing reify:unretire Completed in 0ms
249 timing build:queue Completed in 2ms
250 timing build:link:node_modules/node-gyp Completed in 3ms
251 timing build:link:node_modules/prebuild-install Completed in 2ms
252 timing build:link:node_modules/rc Completed in 2ms
253 timing build:link:node_modules/which Completed in 2ms
254 timing build:link:node_modules/node-gyp/node_modules/semver Completed in 2ms
255 timing build:link Completed in 3ms
256 info run gl@4.9.0 install node_modules/gl prebuild-install || node-gyp rebuild
257 info run gl@4.9.0 install { code: 1, signal: null }
258 timing reify:rollback:createSparse Completed in 669ms
259 timing reify:rollback:retireShallow Completed in 1ms
260 timing command:install Completed in 8795ms
261 verbose stack Error: command failed
261 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
261 verbose stack     at ChildProcess.emit (node:events:394:28)
261 verbose stack     at maybeClose (node:internal/child_process:1067:16)
261 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
262 verbose pkgid gl@4.9.0
263 verbose cwd /home/ubuntu/MCBot
264 verbose Linux 5.4.0-1043-oracle
265 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "node-canvas-webgl"
266 verbose node v16.6.1
267 verbose npm  v7.20.3
268 error code 1
269 error path /home/ubuntu/node_modules/gl
270 error command failed
271 error command sh -c prebuild-install || node-gyp rebuild
272 error gyp info it worked if it ends with ok
272 error gyp info using node-gyp@7.1.2
272 error gyp info using node@16.6.1 | linux | x64
272 error gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
272 error (node:2047871) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
272 error (Use `node --trace-deprecation ...` to show where the warning was created)
272 error gyp info spawn /usr/bin/python3
272 error gyp info spawn args [
272 error gyp info spawn args   '/home/ubuntu/node_modules/node-gyp/gyp/gyp_main.py',
272 error gyp info spawn args   'binding.gyp',
272 error gyp info spawn args   '-f',
272 error gyp info spawn args   'make',
272 error gyp info spawn args   '-I',
272 error gyp info spawn args   '/home/ubuntu/node_modules/gl/build/config.gypi',
272 error gyp info spawn args   '-I',
272 error gyp info spawn args   '/home/ubuntu/node_modules/node-gyp/addon.gypi',
272 error gyp info spawn args   '-I',
272 error gyp info spawn args   '/home/ubuntu/.cache/node-gyp/16.6.1/include/node/common.gypi',
272 error gyp info spawn args   '-Dlibrary=shared_library',
272 error gyp info spawn args   '-Dvisibility=default',
272 error gyp info spawn args   '-Dnode_root_dir=/home/ubuntu/.cache/node-gyp/16.6.1',
272 error gyp info spawn args   '-Dnode_gyp_dir=/home/ubuntu/node_modules/node-gyp',
272 error gyp info spawn args   '-Dnode_lib_file=/home/ubuntu/.cache/node-gyp/16.6.1/<(target_arch)/node.lib',
272 error gyp info spawn args   '-Dmodule_root_dir=/home/ubuntu/node_modules/gl',
272 error gyp info spawn args   '-Dnode_engine=v8',
272 error gyp info spawn args   '--depth=.',
272 error gyp info spawn args   '--no-parallel',
272 error gyp info spawn args   '--generator-output',
272 error gyp info spawn args   'build',
272 error gyp info spawn args   '-Goutput_dir=.'
272 error gyp info spawn args ]
272 error /bin/sh: 1: python: not found
272 error gyp: Call to 'python commit_id.py check ..' returned exit status 127 while in angle/src/angle.gyp. while loading dependencies of binding.gyp while trying to load binding.gyp
272 error gyp ERR! configure error
272 error gyp ERR! stack Error: `gyp` failed with exit code: 1
272 error gyp ERR! stack     at ChildProcess.onCpExit (/home/ubuntu/node_modules/node-gyp/lib/configure.js:351:16)
272 error gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
272 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
272 error gyp ERR! System Linux 5.4.0-1043-oracle
272 error gyp ERR! command "/usr/bin/node" "/home/ubuntu/node_modules/.bin/node-gyp" "rebuild"
272 error gyp ERR! cwd /home/ubuntu/node_modules/gl
272 error gyp ERR! node -v v16.6.1
272 error gyp ERR! node-gyp -v v7.1.2
272 error gyp ERR! not ok
273 verbose exit 1
DOEHOONLEE commented 2 years ago

Try npm install with higher versions of canvas and gl in the package.json dependencies :)

idootop commented 5 months ago

I encountered the same issue. Resolved it by overriding with the latest canvas and gl versions.

{
  "pnpm": {
    "overrides": {
      "canvas": "^2.11.2",
      "gl": "^8.0.2"
    }
  }
}