nodejs / node-gyp

Node.js native addon build tool
MIT License
9.94k stars 1.8k forks source link

Problems installing brain.js #2722

Closed azurenekowo closed 2 years ago

azurenekowo commented 2 years ago

Please look thru your error log for the string gyp info using node-gyp@ and if the version number is less than the current release of node-gyp then please upgrade using the instructions at https://github.com/nodejs/node-gyp/blob/master/docs/Updating-npm-bundled-node-gyp.md and try your command again.

Requests for help with node-sass are very common. Please be aware that this package is deprecated, you should seek alternatives and avoid opening new issues about it here.

Verbose output (from npm or node-gyp): ``` npm verb cli /usr/bin/node /home/akiyue/.npm-global/bin/npm npm info using npm@8.18.0 npm info using node@v18.7.0 npm timing npm:load:whichnode Completed in 0ms npm timing config:load:defaults Completed in 2ms npm timing config:load:file:/home/akiyue/.npm-global/lib/node_modules/npm/npmrc Completed in 1ms npm timing config:load:builtin Completed in 2ms npm timing config:load:cli Completed in 3ms npm timing config:load:env Completed in 1ms npm timing config:load:file:/home/akiyue/projects/talk2me/.npmrc Completed in 0ms npm timing config:load:project Completed in 18ms npm timing config:load:file:/home/akiyue/.npmrc Completed in 2ms npm timing config:load:user Completed in 2ms npm timing config:load:file:/home/akiyue/.npm-global/etc/npmrc Completed in 0ms npm timing config:load:global Completed in 0ms npm timing config:load:validate Completed in 1ms npm timing config:load:credentials Completed in 1ms npm timing config:load:setEnvs Completed in 2ms npm timing config:load Completed in 32ms npm timing npm:load:configload Completed in 33ms npm timing npm:load:mkdirpcache Completed in 1ms npm timing npm:load:mkdirplogs Completed in 1ms npm verb title npm i brain.js npm verb argv "i" "brain.js" "--loglevel" "verbose" npm timing npm:load:setTitle Completed in 2ms npm timing config:load:flatten Completed in 5ms npm timing npm:load:display Completed in 14ms npm verb logfile logs-max:10 dir:/home/akiyue/.npm/_logs npm verb logfile /home/akiyue/.npm/_logs/2022-08-23T13_22_51_321Z-debug-0.log npm timing npm:load:logFile Completed in 8ms npm timing npm:load:timers Completed in 0ms npm timing npm:load:configScope Completed in 0ms npm timing npm:load Completed in 60ms npm timing arborist:ctor Completed in 2ms npm timing arborist:ctor Completed in 0ms npm timing idealTree:init Completed in 23ms npm timing idealTree:userRequests Completed in 4ms npm http fetch GET 200 https://registry.npmjs.org/brain.js 34ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/gpu.js 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/thaw.js 35ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/gl-wiretap 32ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/gl 34ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/webgpu 36ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/acorn 43ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/gpu-mock.js 46ms (cache hit) npm timing idealTree:#root Completed in 130ms npm timing idealTree:node_modules/brain.js Completed in 4ms npm http fetch GET 200 https://registry.npmjs.org/bindings 41ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/nan 37ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/bit-twiddle 42ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/node-abi 38ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/glsl-tokenizer 44ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 39ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/node-gyp 44ms (cache hit) npm timing idealTree:node_modules/gpu.js Completed in 81ms npm timing idealTree:node_modules/acorn Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/file-uri-to-path 138ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/through2 139ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/env-paths 139ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/semver 142ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/graceful-fs 142ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/nopt 144ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/glob 147ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/npmlog 148ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/request 149ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/rimraf 152ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/which 151ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/expand-template 150ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tar 155ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/detect-libc 155ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/minimist 152ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/github-from-package 157ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 153ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 152ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/rc 149ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/simple-get 148ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tar-fs 149ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 148ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/which-pm-runs 149ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/semver 174ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/noop-logger 162ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/npmlog 162ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/pump 163ms (cache hit) npm timing idealTree:node_modules/gl Completed in 216ms npm timing idealTree:node_modules/bindings Completed in 4ms npm timing idealTree:node_modules/bit-twiddle Completed in 0ms npm timing idealTree:node_modules/file-uri-to-path Completed in 0ms npm timing idealTree:node_modules/gl-wiretap Completed in 1ms npm http fetch GET 200 https://registry.npmjs.org/xtend 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/readable-stream 17ms (cache hit) npm timing idealTree:node_modules/glsl-tokenizer Completed in 26ms npm timing idealTree:node_modules/gpu-mock.js Completed in 0ms npm timing idealTree:node_modules/nan Completed in 0ms npm timing idealTree:node_modules/node-abi Completed in 2ms npm http fetch GET 200 https://registry.npmjs.org/inflight 194ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/fs.realpath 198ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/inherits 194ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/abbrev 188ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/path-is-absolute 191ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/once 193ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/are-we-there-yet 189ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/console-control-strings 189ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/gauge 188ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/aws-sign2 187ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/set-blocking 190ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/aws4 187ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/caseless 188ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/combined-stream 187ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/forever-agent 185ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/har-validator 183ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/extend 189ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/http-signature 185ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-typedarray 177ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/json-stringify-safe 175ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/oauth-sign 174ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/mime-types 176ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/performance-now 175ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/qs 174ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tough-cookie 176ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 179ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/uuid 177ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/chownr 177ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/lru-cache 183ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/fs-minipass 189ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/form-data 217ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/mkdirp 192ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/minipass 197ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/yallist 196ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/isexe 196ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/minimatch 251ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/isstream 221ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/minizlib 214ms (cache hit) npm timing idealTree:node_modules/node-gyp Completed in 300ms npm timing idealTree:node_modules/env-paths Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/brace-expansion 13ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/wrappy 17ms (cache hit) npm timing idealTree:node_modules/glob Completed in 34ms npm timing idealTree:node_modules/fs.realpath Completed in 0ms npm timing idealTree:node_modules/graceful-fs Completed in 0ms npm timing idealTree:node_modules/inflight Completed in 2ms npm timing idealTree:node_modules/inherits Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/concat-map 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/balanced-match 11ms (cache hit) npm timing idealTree:node_modules/minimatch Completed in 15ms npm timing idealTree:node_modules/brace-expansion Completed in 5ms npm timing idealTree:node_modules/balanced-match Completed in 1ms npm timing idealTree:node_modules/concat-map Completed in 0ms npm timing idealTree:node_modules/nopt Completed in 2ms npm timing idealTree:node_modules/abbrev Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/delegates 39ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/string-width 34ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/object-assign 41ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/has-unicode 44ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/wide-align 38ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 40ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/aproba 48ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/signal-exit 45ms (cache hit) npm timing idealTree:node_modules/npmlog Completed in 58ms npm http fetch GET 200 https://registry.npmjs.org/core-util-is 25ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/string_decoder 23ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/isarray 26ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/process-nextick-args 26ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 24ms (cache hit) npm timing idealTree:node_modules/are-we-there-yet Completed in 36ms npm timing idealTree:node_modules/console-control-strings Completed in 0ms npm timing idealTree:node_modules/delegates Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 17ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/code-point-at 21ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 21ms (cache hit) npm timing idealTree:node_modules/gauge Completed in 35ms npm timing idealTree:node_modules/aproba Completed in 0ms npm timing idealTree:node_modules/has-unicode Completed in 0ms npm timing idealTree:node_modules/object-assign Completed in 0ms npm timing idealTree:node_modules/once Completed in 0ms npm timing idealTree:node_modules/path-is-absolute Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 29ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/decompress-response 25ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ini 29ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tar-stream 26ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 32ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/deep-extend 41ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/simple-concat 36ms (cache hit) npm timing idealTree:node_modules/prebuild-install Completed in 73ms npm timing idealTree:node_modules/detect-libc Completed in 0ms npm timing idealTree:node_modules/expand-template Completed in 0ms npm timing idealTree:node_modules/github-from-package Completed in 0ms npm timing idealTree:node_modules/minimist Completed in 0ms npm timing idealTree:node_modules/mkdirp-classic Completed in 0ms npm timing idealTree:node_modules/napi-build-utils Completed in 0ms npm timing idealTree:node_modules/noop-logger Completed in 0ms npm timing idealTree:node_modules/pump Completed in 2ms npm timing idealTree:node_modules/end-of-stream Completed in 0ms npm timing idealTree:node_modules/rc Completed in 5ms npm timing idealTree:node_modules/deep-extend Completed in 0ms npm timing idealTree:node_modules/ini Completed in 0ms npm timing idealTree:node_modules/readable-stream Completed in 12ms npm timing idealTree:node_modules/core-util-is Completed in 0ms npm timing idealTree:node_modules/isarray Completed in 0ms npm timing idealTree:node_modules/process-nextick-args Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/delayed-stream 45ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/har-schema 42ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/assert-plus 41ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/sshpk 40ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/mime-db 40ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/punycode 40ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/psl 42ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/jsprim 47ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ajv 52ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/asynckit 66ms (cache hit) npm timing idealTree:node_modules/request Completed in 105ms npm timing idealTree:node_modules/aws-sign2 Completed in 0ms npm timing idealTree:node_modules/aws4 Completed in 0ms npm timing idealTree:node_modules/caseless Completed in 0ms npm timing idealTree:node_modules/combined-stream Completed in 2ms npm timing idealTree:node_modules/delayed-stream Completed in 0ms npm timing idealTree:node_modules/extend Completed in 0ms npm timing idealTree:node_modules/forever-agent Completed in 0ms npm timing idealTree:node_modules/form-data Completed in 2ms npm timing idealTree:node_modules/asynckit Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/uri-js 12ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/fast-deep-equal 18ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/json-schema-traverse 16ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/fast-json-stable-stringify 25ms (cache hit) npm timing idealTree:node_modules/har-validator Completed in 32ms npm timing idealTree:node_modules/ajv Completed in 7ms npm timing idealTree:node_modules/fast-deep-equal Completed in 0ms npm timing idealTree:node_modules/fast-json-stable-stringify Completed in 0ms npm timing idealTree:node_modules/har-schema Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/dashdash 51ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/json-schema 57ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/asn1 56ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/verror 58ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/getpass 55ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/extsprintf 62ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/safer-buffer 56ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tweetnacl 54ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ecc-jsbn 53ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/bcrypt-pbkdf 53ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/jsbn 58ms (cache hit) npm timing idealTree:node_modules/http-signature Completed in 73ms npm timing idealTree:node_modules/assert-plus Completed in 0ms npm timing idealTree:node_modules/is-typedarray Completed in 0ms npm timing idealTree:node_modules/isstream Completed in 0ms npm timing idealTree:node_modules/json-schema-traverse Completed in 0ms npm timing idealTree:node_modules/json-stringify-safe Completed in 0ms npm timing idealTree:node_modules/jsprim Completed in 5ms npm timing idealTree:node_modules/extsprintf Completed in 0ms npm timing idealTree:node_modules/json-schema Completed in 0ms npm timing idealTree:node_modules/mime-types Completed in 1ms npm timing idealTree:node_modules/mime-db Completed in 0ms npm timing idealTree:node_modules/oauth-sign Completed in 0ms npm timing idealTree:node_modules/performance-now Completed in 0ms npm timing idealTree:node_modules/qs Completed in 0ms npm timing idealTree:node_modules/rimraf Completed in 0ms npm timing idealTree:node_modules/safe-buffer Completed in 0ms npm timing idealTree:node_modules/semver Completed in 0ms npm timing idealTree:node_modules/set-blocking Completed in 0ms npm timing idealTree:node_modules/signal-exit Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/mimic-response 6ms (cache hit) npm timing idealTree:node_modules/simple-get Completed in 12ms npm timing idealTree:node_modules/decompress-response Completed in 2ms npm timing idealTree:node_modules/mimic-response Completed in 0ms npm timing idealTree:node_modules/simple-concat Completed in 0ms npm timing idealTree:node_modules/sshpk Completed in 16ms npm timing idealTree:node_modules/asn1 Completed in 0ms npm timing idealTree:node_modules/bcrypt-pbkdf Completed in 0ms npm timing idealTree:node_modules/dashdash Completed in 0ms npm timing idealTree:node_modules/ecc-jsbn Completed in 0ms npm timing idealTree:node_modules/getpass Completed in 0ms npm timing idealTree:node_modules/jsbn Completed in 0ms npm timing idealTree:node_modules/safer-buffer Completed in 0ms npm timing idealTree:node_modules/string_decoder Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/number-is-nan 5ms (cache hit) npm timing idealTree:node_modules/string-width Completed in 11ms npm timing idealTree:node_modules/code-point-at Completed in 0ms npm timing idealTree:node_modules/is-fullwidth-code-point Completed in 2ms npm timing idealTree:node_modules/number-is-nan Completed in 0ms npm timing idealTree:node_modules/strip-ansi Completed in 2ms npm timing idealTree:node_modules/ansi-regex Completed in 0ms npm timing idealTree:node_modules/strip-json-comments Completed in 0ms npm timing idealTree:node_modules/tar Completed in 9ms npm timing idealTree:node_modules/chownr Completed in 0ms npm timing idealTree:node_modules/fs-minipass Completed in 0ms npm timing idealTree:node_modules/minipass Completed in 0ms npm timing idealTree:node_modules/minizlib Completed in 0ms npm timing idealTree:node_modules/mkdirp Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/fs-constants 36ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/bl 40ms (cache hit) npm timing idealTree:node_modules/tar-fs Completed in 50ms npm http fetch GET 200 https://registry.npmjs.org/buffer 27ms (cache hit) npm timing idealTree:node_modules/tar-stream Completed in 44ms npm http fetch GET 200 https://registry.npmjs.org/base64-js 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ieee754 9ms (cache hit) npm timing idealTree:node_modules/bl Completed in 16ms npm timing idealTree:node_modules/buffer Completed in 3ms npm timing idealTree:node_modules/base64-js Completed in 0ms npm timing idealTree:node_modules/fs-constants Completed in 0ms npm timing idealTree:node_modules/ieee754 Completed in 0ms npm timing idealTree:node_modules/thaw.js Completed in 0ms npm timing idealTree:node_modules/through2 Completed in 5ms npm timing idealTree:node_modules/tough-cookie Completed in 3ms npm timing idealTree:node_modules/psl Completed in 0ms npm timing idealTree:node_modules/punycode Completed in 0ms npm timing idealTree:node_modules/tunnel-agent Completed in 0ms npm timing idealTree:node_modules/tweetnacl Completed in 0ms npm timing idealTree:node_modules/uri-js Completed in 0ms npm timing idealTree:node_modules/util-deprecate Completed in 0ms npm timing idealTree:node_modules/uuid Completed in 0ms npm timing idealTree:node_modules/verror Completed in 2ms npm timing idealTree:node_modules/webgpu Completed in 0ms npm timing idealTree:node_modules/which Completed in 1ms npm timing idealTree:node_modules/isexe Completed in 0ms npm timing idealTree:node_modules/which-pm-runs Completed in 0ms npm timing idealTree:node_modules/wide-align Completed in 0ms npm timing idealTree:node_modules/wrappy Completed in 0ms npm timing idealTree:node_modules/xtend Completed in 0ms npm timing idealTree:node_modules/yallist Completed in 0ms npm timing idealTree:node_modules/bl/node_modules/readable-stream Completed in 0ms npm timing idealTree:node_modules/node-gyp/node_modules/semver Completed in 2ms npm timing idealTree:node_modules/lru-cache Completed in 0ms npm timing idealTree:node_modules/tar-fs/node_modules/chownr Completed in 0ms npm timing idealTree:node_modules/tar-stream/node_modules/readable-stream Completed in 0ms npm timing idealTree:node_modules/through2/node_modules/readable-stream Completed in 3ms npm timing idealTree:node_modules/through2/node_modules/isarray Completed in 0ms npm timing idealTree:node_modules/through2/node_modules/string_decoder Completed in 0ms npm timing idealTree:node_modules/verror/node_modules/core-util-is Completed in 0ms npm timing idealTree:buildDeps Completed in 1502ms npm timing idealTree:fixDepFlags Completed in 4ms npm timing idealTree Completed in 1538ms npm timing reify:loadTrees Completed in 1539ms npm timing reify:diffTrees Completed in 4ms npm timing reify:retireShallow Completed in 2ms npm timing reify:createSparse Completed in 34ms npm timing reify:loadBundles Completed in 0ms npm timing reifyNode:node_modules/chownr Completed in 1315ms npm timing reifyNode:node_modules/ansi-regex Completed in 1315ms npm timing reifyNode:node_modules/number-is-nan Completed in 1316ms npm timing reifyNode:node_modules/is-fullwidth-code-point Completed in 1316ms npm timing reifyNode:node_modules/code-point-at Completed in 1316ms npm timing reifyNode:node_modules/oauth-sign Completed in 1317ms npm timing reifyNode:node_modules/process-nextick-args Completed in 1317ms npm timing reifyNode:node_modules/strip-json-comments Completed in 1318ms npm timing reifyNode:node_modules/ini Completed in 1317ms npm timing reifyNode:node_modules/end-of-stream Completed in 1318ms npm timing reifyNode:node_modules/which-pm-runs Completed in 1318ms npm timing reifyNode:node_modules/wide-align Completed in 1319ms npm timing reifyNode:node_modules/strip-ansi Completed in 1320ms npm timing reifyNode:node_modules/string-width Completed in 1320ms npm timing reifyNode:node_modules/object-assign Completed in 1321ms npm timing reifyNode:node_modules/aproba Completed in 1320ms npm timing reifyNode:node_modules/has-unicode Completed in 1321ms npm timing reifyNode:node_modules/abbrev Completed in 1322ms npm timing reifyNode:node_modules/brace-expansion Completed in 1322ms npm timing reifyNode:node_modules/wrappy Completed in 1323ms npm timing reifyNode:node_modules/path-is-absolute Completed in 1322ms npm timing reifyNode:node_modules/once Completed in 1323ms npm timing reifyNode:node_modules/inflight Completed in 1323ms npm timing reifyNode:node_modules/mkdirp-classic Completed in 1327ms npm timing reifyNode:node_modules/bindings Completed in 1324ms npm timing reifyNode:node_modules/tar-fs/node_modules/chownr Completed in 1330ms npm timing reifyNode:node_modules/lru-cache Completed in 1341ms npm timing reifyNode:node_modules/ieee754 Completed in 1340ms npm timing reifyNode:node_modules/fs-constants Completed in 1340ms npm timing reifyNode:node_modules/fs-minipass Completed in 1340ms npm timing reifyNode:node_modules/mimic-response Completed in 1339ms npm timing reifyNode:node_modules/decompress-response Completed in 1340ms npm timing reifyNode:node_modules/assert-plus Completed in 1340ms npm timing reifyNode:node_modules/is-typedarray Completed in 1342ms npm timing reifyNode:node_modules/forever-agent Completed in 1342ms npm timing reifyNode:node_modules/caseless Completed in 1342ms npm timing reifyNode:node_modules/aws-sign2 Completed in 1343ms npm timing reifyNode:node_modules/core-util-is Completed in 1343ms npm timing reifyNode:node_modules/tunnel-agent Completed in 1342ms npm timing reifyNode:node_modules/simple-get Completed in 1343ms npm timing reifyNode:node_modules/signal-exit Completed in 1344ms npm timing reifyNode:node_modules/set-blocking Completed in 1344ms npm timing reifyNode:node_modules/console-control-strings Completed in 1345ms npm timing reifyNode:node_modules/inherits Completed in 1344ms npm timing reifyNode:node_modules/env-paths Completed in 1345ms npm timing reifyNode:node_modules/through2 Completed in 1345ms npm timing reifyNode:node_modules/gpu-mock.js Completed in 1346ms npm timing reifyNode:node_modules/through2/node_modules/string_decoder Completed in 1350ms npm timing reifyNode:node_modules/base64-js Completed in 1364ms npm timing reifyNode:node_modules/yallist Completed in 1364ms npm timing reifyNode:node_modules/combined-stream Completed in 1363ms npm timing reifyNode:node_modules/util-deprecate Completed in 1364ms npm timing reifyNode:node_modules/expand-template Completed in 1363ms npm timing reifyNode:node_modules/balanced-match Completed in 1363ms npm timing reifyNode:node_modules/fs.realpath Completed in 1362ms npm timing reifyNode:node_modules/through2/node_modules/isarray Completed in 1363ms npm timing reifyNode:node_modules/xtend Completed in 1377ms npm timing reifyNode:node_modules/minizlib Completed in 1376ms npm timing reifyNode:node_modules/getpass Completed in 1376ms npm timing reifyNode:node_modules/simple-concat Completed in 1378ms npm timing reifyNode:node_modules/delayed-stream Completed in 1379ms npm timing reifyNode:node_modules/mime-types Completed in 1379ms npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm timing reifyNode:node_modules/har-validator Completed in 1380ms npm timing reifyNode:node_modules/string_decoder Completed in 1379ms npm timing reifyNode:node_modules/safe-buffer Completed in 1380ms npm timing reifyNode:node_modules/deep-extend Completed in 1379ms npm timing reifyNode:node_modules/pump Completed in 1380ms npm timing reifyNode:node_modules/napi-build-utils Completed in 1379ms npm timing reifyNode:node_modules/minimatch Completed in 1379ms npm timing reifyNode:node_modules/which Completed in 1379ms npm timing reifyNode:node_modules/npmlog Completed in 1379ms npm timing reifyNode:node_modules/gl-wiretap Completed in 1381ms npm timing reifyNode:node_modules/bcrypt-pbkdf Completed in 1395ms npm timing reifyNode:node_modules/json-schema Completed in 1395ms npm timing reifyNode:node_modules/isarray Completed in 1395ms npm timing reifyNode:node_modules/rimraf Completed in 1393ms npm timing reifyNode:node_modules/graceful-fs Completed in 1393ms npm timing reifyNode:node_modules/punycode Completed in 1408ms npm timing reifyNode:node_modules/delegates Completed in 1406ms npm timing reifyNode:node_modules/concat-map Completed in 1407ms npm timing reifyNode:node_modules/verror/node_modules/core-util-is Completed in 1415ms npm timing reifyNode:node_modules/isexe Completed in 1421ms npm timing reifyNode:node_modules/minipass Completed in 1419ms npm timing reifyNode:node_modules/safer-buffer Completed in 1419ms npm timing reifyNode:node_modules/jsprim Completed in 1418ms npm timing reifyNode:node_modules/isstream Completed in 1419ms npm timing reifyNode:node_modules/extend Completed in 1420ms npm timing reifyNode:node_modules/aws4 Completed in 1419ms npm timing reifyNode:node_modules/noop-logger Completed in 1418ms npm timing reifyNode:node_modules/detect-libc Completed in 1419ms npm timing reifyNode:node_modules/are-we-there-yet Completed in 1419ms npm timing reifyNode:node_modules/nopt Completed in 1418ms npm timing reifyNode:node_modules/bit-twiddle Completed in 1418ms npm timing reifyNode:node_modules/tar-stream Completed in 1430ms npm timing reifyNode:node_modules/verror Completed in 1430ms npm timing reifyNode:node_modules/jsbn Completed in 1433ms npm timing reifyNode:node_modules/glob Completed in 1428ms npm timing reifyNode:node_modules/semver Completed in 1428ms npm timing reifyNode:node_modules/file-uri-to-path Completed in 1428ms npm timing reifyNode:node_modules/ecc-jsbn Completed in 1441ms npm timing reifyNode:node_modules/extsprintf Completed in 1441ms npm timing reifyNode:node_modules/json-stringify-safe Completed in 1441ms npm timing reifyNode:node_modules/buffer Completed in 1457ms npm timing reifyNode:node_modules/json-schema-traverse Completed in 1455ms npm timing reifyNode:node_modules/mkdirp Completed in 1464ms npm timing reifyNode:node_modules/asn1 Completed in 1464ms npm timing reifyNode:node_modules/fast-deep-equal Completed in 1463ms npm timing reifyNode:node_modules/dashdash Completed in 1469ms npm timing reifyNode:node_modules/github-from-package Completed in 1465ms npm timing reifyNode:node_modules/glsl-tokenizer Completed in 1462ms npm timing reifyNode:node_modules/thaw.js Completed in 1462ms npm timing reifyNode:node_modules/rc Completed in 1472ms npm timing reifyNode:node_modules/bl Completed in 1482ms npm timing reifyNode:node_modules/tough-cookie Completed in 1480ms npm timing reifyNode:node_modules/node-abi Completed in 1473ms npm timing reifyNode:node_modules/http-signature Completed in 1486ms npm timing reifyNode:node_modules/form-data Completed in 1487ms npm timing reifyNode:node_modules/mime-db Completed in 1491ms npm timing reifyNode:node_modules/through2/node_modules/readable-stream Completed in 1485ms npm timing reifyNode:node_modules/asynckit Completed in 1495ms npm timing reifyNode:node_modules/performance-now Completed in 1499ms npm timing reifyNode:node_modules/prebuild-install Completed in 1493ms npm timing reifyNode:node_modules/fast-json-stable-stringify Completed in 1503ms npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm timing reifyNode:node_modules/uuid Completed in 1511ms npm timing reifyNode:node_modules/tweetnacl Completed in 1515ms npm timing reifyNode:node_modules/har-schema Completed in 1514ms npm timing reifyNode:node_modules/gauge Completed in 1510ms npm timing reifyNode:node_modules/minimist Completed in 1515ms npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm timing reifyNode:node_modules/request Completed in 1534ms npm timing reifyNode:node_modules/qs Completed in 1543ms npm timing reifyNode:node_modules/readable-stream Completed in 1541ms npm timing reifyNode:node_modules/tar-stream/node_modules/readable-stream Completed in 1555ms npm timing reifyNode:node_modules/bl/node_modules/readable-stream Completed in 1557ms npm timing reifyNode:node_modules/psl Completed in 1558ms npm timing reifyNode:node_modules/tar Completed in 1555ms npm timing reifyNode:node_modules/tar-fs Completed in 1560ms npm timing reifyNode:node_modules/node-gyp/node_modules/semver Completed in 1573ms npm timing reifyNode:node_modules/sshpk Completed in 1589ms npm timing reifyNode:node_modules/uri-js Completed in 1623ms npm timing reifyNode:node_modules/acorn Completed in 1617ms npm timing reifyNode:node_modules/nan Completed in 1620ms npm timing reifyNode:node_modules/ajv Completed in 1687ms npm timing reifyNode:node_modules/node-gyp Completed in 1741ms npm timing reifyNode:node_modules/gpu.js Completed in 1748ms npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 1854ms npm timing auditReport:getReport Completed in 1862ms npm timing auditReport:init Completed in 0ms npm timing reify:audit Completed in 1863ms npm timing reifyNode:node_modules/brain.js Completed in 1849ms npm timing reifyNode:node_modules/gl Completed in 2280ms npm timing reifyNode:node_modules/webgpu Completed in 2342ms npm timing reify:unpack Completed in 2356ms npm timing reify:unretire Completed in 0ms npm timing build:queue Completed in 7ms npm timing build:link:node_modules/acorn Completed in 8ms npm timing build:link:node_modules/node-gyp/node_modules/semver Completed in 7ms npm timing build:link:node_modules/detect-libc Completed in 8ms npm timing build:link:node_modules/node-gyp Completed in 8ms npm timing build:link:node_modules/mkdirp Completed in 8ms npm timing build:link:node_modules/prebuild-install Completed in 9ms npm timing build:link:node_modules/nopt Completed in 9ms npm timing build:link:node_modules/rc Completed in 9ms npm timing build:link:node_modules/rimraf Completed in 9ms npm timing build:link:node_modules/semver Completed in 8ms npm timing build:link:node_modules/uuid Completed in 9ms npm timing build:link:node_modules/which Completed in 9ms npm timing build:link:node_modules/sshpk Completed in 9ms npm timing build:link Completed in 11ms npm info run gl@4.9.2 install node_modules/gl prebuild-install || node-gyp rebuild npm info run gl@4.9.2 install { code: 1, signal: null } npm timing reify:rollback:createSparse Completed in 707ms npm timing reify:rollback:retireShallow Completed in 0ms npm timing command:i Completed in 6048ms npm verb stack Error: command failed npm verb stack at ChildProcess. (/home/akiyue/.npm-global/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27) npm verb stack at ChildProcess.emit (node:events:513:28) npm verb stack at maybeClose (node:internal/child_process:1091:16) npm verb stack at ChildProcess._handle.onexit (node:internal/child_process:302:5) npm verb pkgid gl@4.9.2 npm verb cwd /home/akiyue/projects/talk2me npm verb Linux 5.10.0-16-amd64 npm verb node v18.7.0 npm verb npm v8.18.0 npm ERR! code 1 npm ERR! path /home/akiyue/projects/talk2me/node_modules/gl npm ERR! command failed npm ERR! command sh -c -- prebuild-install || node-gyp rebuild npm ERR! prebuild-install info begin Prebuild-install version 5.3.6 npm ERR! prebuild-install info install installing standalone, skipping download. npm ERR! gyp info it worked if it ends with ok npm ERR! gyp verb cli [ npm ERR! gyp verb cli '/usr/bin/node', npm ERR! gyp verb cli '/home/akiyue/projects/talk2me/node_modules/.bin/node-gyp', npm ERR! gyp verb cli 'rebuild' npm ERR! gyp verb cli ] npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@18.7.0 | linux | x64 npm ERR! gyp verb command rebuild [] npm ERR! gyp verb command clean [] npm ERR! gyp verb clean removing "build" directory npm ERR! gyp verb command configure [] npm ERR! gyp verb find Python Python is not set from command line or npm configuration npm ERR! gyp verb find Python Python is not set from environment variable PYTHON npm ERR! gyp verb find Python checking if "python3" can be used npm ERR! gyp verb find Python - executing "python3" to get executable path npm ERR! gyp verb find Python - executable path is "/usr/local/bin/python3" npm ERR! gyp verb find Python - executing "/usr/local/bin/python3" to get version npm ERR! gyp verb find Python - version is "3.10.6" npm ERR! gyp info find Python using Python version 3.10.6 found at "/usr/local/bin/python3" npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 18.7.0 npm ERR! gyp verb command install [ '18.7.0' ] npm ERR! gyp verb install input version string "18.7.0" npm ERR! gyp verb install installing version: 18.7.0 npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed npm ERR! gyp verb install version is already installed, need to check "installVersion" npm ERR! gyp verb got "installVersion" 9 npm ERR! gyp verb needs "installVersion" 9 npm ERR! gyp verb install version is good npm ERR! gyp verb get node dir target node version installed: 18.7.0 npm ERR! gyp verb build dir attempting to create "build" dir: /home/akiyue/projects/talk2me/node_modules/gl/build npm ERR! gyp verb build dir "build" dir needed to be created? /home/akiyue/projects/talk2me/node_modules/gl/build npm ERR! gyp verb build/config.gypi creating config file npm ERR! gyp verb build/config.gypi writing out config file: /home/akiyue/projects/talk2me/node_modules/gl/build/config.gypi npm ERR! (node:38671) [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 verb config.gypi checking for gypi file: /home/akiyue/projects/talk2me/node_modules/gl/config.gypi npm ERR! gyp verb common.gypi checking for gypi file: /home/akiyue/projects/talk2me/node_modules/gl/common.gypi npm ERR! gyp verb gyp gyp format was not specified; forcing "make" npm ERR! gyp info spawn /usr/local/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/akiyue/projects/talk2me/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/akiyue/projects/talk2me/node_modules/gl/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/akiyue/projects/talk2me/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/akiyue/.cache/node-gyp/18.7.0/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/akiyue/.cache/node-gyp/18.7.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/akiyue/projects/talk2me/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/akiyue/.cache/node-gyp/18.7.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/akiyue/projects/talk2me/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/akiyue/projects/talk2me/node_modules/node-gyp/lib/configure.js:351:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 5.10.0-16-amd64 npm ERR! gyp ERR! command "/usr/bin/node" "/home/akiyue/projects/talk2me/node_modules/.bin/node-gyp" "rebuild" npm ERR! gyp ERR! cwd /home/akiyue/projects/talk2me/node_modules/gl npm ERR! gyp ERR! node -v v18.7.0 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok npm verb exit 1 npm timing npm Completed in 6351ms npm verb unfinished npm timer reify 1661260971618 npm verb unfinished npm timer reify:build 1661260975585 npm verb unfinished npm timer build 1661260975586 npm verb unfinished npm timer build:deps 1661260975587 npm verb unfinished npm timer build:run:install 1661260975606 npm verb unfinished npm timer build:run:install:node_modules/gl 1661260975607 npm verb code 1 npm ERR! A complete log of this run can be found in: npm ERR! /home/akiyue/.npm/_logs/2022-08-23T13_22_51_321Z-debug-0.log ```

I have Python 3.10.6 installed and already aliased as python in .bashrc. Still error.

cclauss commented 2 years ago

The first sentence of this issue is:

Please look thru your error log for the string gyp info using node-gyp@ and if the version number is less than the current release of node-gyp then please upgrade using the instructions at https://github.com/nodejs/node-gyp/blob/master/docs/Updating-npm-bundled-node-gyp.md and try your command again.

When we follow those directions, we see:

npm ERR! gyp info using node-gyp@7.1.2

please upgrade

The error log also contains proof that finding Python is not the problem:

npm ERR! gyp info find Python using Python version 3.10.6 found at "/usr/local/bin/python3"

.bashrc has no effect on /bin/sh

What command was typed?

azurenekowo commented 2 years ago

@cclauss I only typed in npm i brain.js. Also, I have done npm i -g node-gyp@latest and rebooted my machine but it still shows node-gyp@7.1.2 in the console.

image image

cclauss commented 2 years ago

Please reread the first line of your original post above. The instructions at that URL explain that npm i -g node-gyp@latest is NOT the solution.

kul-sudo commented 1 year ago

Any updates specifically on Brain.js?

cclauss commented 1 year ago

Yes. All automated tests continue to fail at https://github.com/BrainJS/brain.js/actions

https://github.com/BrainJS/brain.js/blob/226819334d9ce32c1bd16414ce7235b807facafb/package-lock.json#L11483-L11484 v7.1.2 vs. v9.4.0 at https://github.com/nodejs/node-gyp/releases

kul-sudo commented 1 year ago

So it is an actual issue which still exists and has to be fixed, isn't it?