0 verbose cli /usr/bin/node /usr/bin/npm 1 info using npm@8.11.0 2 info using node@v16.15.1 3 timing npm:load:whichnode Completed in 2ms 4 timing config:load:defaults Completed in 9ms 5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 4ms 6 timing config:load:builtin Completed in 4ms 7 timing config:load:cli Completed in 11ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:/root/.node-red/.npmrc Completed in 1ms 10 timing config:load:project Completed in 42ms 11 timing config:load:file:/root/.npmrc Completed in 0ms 12 timing config:load:user Completed in 3ms 13 timing config:load:file:/usr/etc/npmrc Completed in 0ms 14 timing config:load:global Completed in 1ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:credentials Completed in 6ms 17 timing config:load:setEnvs Completed in 6ms 18 timing config:load Completed in 88ms 19 timing npm:load:configload Completed in 90ms 20 timing npm:load:mkdirpcache Completed in 3ms 21 timing npm:load:mkdirplogs Completed in 2ms 22 verbose title npm install node-red-node-serialport 23 verbose argv "install" "node-red-node-serialport" "--build-from-source" 24 timing npm:load:setTitle Completed in 5ms 25 timing config:load:flatten Completed in 15ms 26 timing npm:load:display Completed in 25ms 27 verbose logfile logs-max:10 dir:/root/.npm/_logs 28 verbose logfile /root/.npm/_logs/2022-06-14T00_37_29_312Z-debug-0.log 29 timing npm:load:logFile Completed in 26ms 30 timing npm:load:timers Completed in 0ms 31 timing npm:load:configScope Completed in 1ms 32 timing npm:load Completed in 158ms 33 timing arborist:ctor Completed in 5ms 34 silly logfile start cleaning logs, removing 1 files 35 silly logfile done cleaning log files 36 timing idealTree:init Completed in 33ms 37 timing idealTree:userRequests Completed in 15ms 38 silly idealTree buildDeps 39 silly fetch manifest node-red-node-serialport@* 40 timing arborist:ctor Completed in 1ms 41 http fetch GET 200 https://registry.npmjs.org/node-red-node-serialport 1053ms (cache revalidated) 42 silly placeDep ROOT node-red-node-serialport@1.0.1 OK for: node-red-project@0.0.1 want: * 43 silly fetch manifest serialport@^10.3.0 44 http fetch GET 200 https://registry.npmjs.org/serialport 834ms (cache revalidated) 45 timing idealTree:#root Completed in 1970ms 46 silly placeDep ROOT serialport@10.4.0 OK for: node-red-node-serialport@1.0.1 want: ^10.3.0 47 silly fetch manifest @serialport/binding-mock@10.2.2 48 silly fetch manifest @serialport/bindings-cpp@10.7.0 49 silly fetch manifest @serialport/parser-byte-length@10.3.0 50 silly fetch manifest @serialport/parser-cctalk@10.3.0 51 silly fetch manifest @serialport/parser-delimiter@10.3.0 52 silly fetch manifest @serialport/parser-inter-byte-timeout@10.3.0 53 silly fetch manifest @serialport/parser-packet-length@10.3.0 54 silly fetch manifest @serialport/parser-readline@10.3.0 55 silly fetch manifest @serialport/parser-ready@10.3.0 56 silly fetch manifest @serialport/parser-regex@10.3.0 57 silly fetch manifest @serialport/parser-slip-encoder@10.3.0 58 silly fetch manifest @serialport/parser-spacepacket@10.3.0 59 silly fetch manifest @serialport/stream@10.3.0 60 silly fetch manifest debug@^4.3.3 61 http fetch GET 200 https://registry.npmjs.org/debug 369ms (cache revalidated) 62 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-spacepacket 1684ms (cache revalidated) 63 http fetch GET 200 https://registry.npmjs.org/@serialport%2fbinding-mock 1855ms (cache revalidated) 64 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-ready 2046ms (cache revalidated) 65 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-readline 2058ms (cache revalidated) 66 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-regex 2071ms (cache revalidated) 67 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-cctalk 2096ms (cache revalidated) 68 http fetch GET 200 https://registry.npmjs.org/@serialport%2fstream 2087ms (cache revalidated) 69 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-delimiter 2112ms (cache revalidated) 70 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-byte-length 2118ms (cache revalidated) 71 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-slip-encoder 2131ms (cache revalidated) 72 http fetch GET 200 https://registry.npmjs.org/@serialport%2fbindings-cpp 2166ms (cache revalidated) 73 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-inter-byte-timeout 2267ms (cache revalidated) 74 http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-packet-length 2496ms (cache revalidated) 75 timing idealTree:node_modules/node-red-node-serialport Completed in 2533ms 76 silly placeDep ROOT @serialport/binding-mock@10.2.2 OK for: serialport@10.4.0 want: 10.2.2 77 silly placeDep ROOT @serialport/bindings-cpp@10.7.0 OK for: serialport@10.4.0 want: 10.7.0 78 silly placeDep ROOT @serialport/parser-byte-length@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 79 silly placeDep ROOT @serialport/parser-cctalk@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 80 silly placeDep ROOT @serialport/parser-delimiter@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 81 silly placeDep ROOT @serialport/parser-inter-byte-timeout@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 82 silly placeDep ROOT @serialport/parser-packet-length@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 83 silly placeDep ROOT @serialport/parser-readline@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 84 silly placeDep ROOT @serialport/parser-ready@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 85 silly placeDep ROOT @serialport/parser-regex@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 86 silly placeDep ROOT @serialport/parser-slip-encoder@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 87 silly placeDep ROOT @serialport/parser-spacepacket@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 88 silly placeDep ROOT @serialport/stream@10.3.0 OK for: serialport@10.4.0 want: 10.3.0 89 silly placeDep ROOT debug@4.3.4 OK for: serialport@10.4.0 want: ^4.3.3 90 silly fetch manifest @serialport/bindings-interface@^1.2.1 91 silly fetch manifest @serialport/bindings-interface@1.2.1 92 silly fetch manifest node-addon-api@^4.3.0 93 silly fetch manifest node-gyp-build@^4.3.0 94 silly fetch manifest ms@2.1.2 95 http fetch GET 200 https://registry.npmjs.org/node-addon-api 97ms (cache revalidated) 96 http fetch GET 200 https://registry.npmjs.org/node-gyp-build 127ms (cache revalidated) 97 http fetch GET 200 https://registry.npmjs.org/ms 143ms (cache updated) 98 http fetch GET 200 https://registry.npmjs.org/@serialport%2fbindings-interface 1921ms (cache revalidated) 99 http fetch GET 200 https://registry.npmjs.org/@serialport%2fbindings-interface 1957ms (cache revalidated) 100 timing idealTree:node_modules/serialport Completed in 2108ms 101 silly placeDep ROOT @serialport/bindings-interface@1.2.2 OK for: @serialport/binding-mock@10.2.2 want: ^1.2.1 102 timing idealTree:node_modules/@serialport/binding-mock Completed in 8ms 103 silly placeDep node_modules/@serialport/bindings-cpp @serialport/bindings-interface@1.2.1 OK for: @serialport/bindings-cpp@10.7.0 want: 1.2.1 104 silly placeDep ROOT node-addon-api@4.3.0 OK for: @serialport/bindings-cpp@10.7.0 want: ^4.3.0 105 silly placeDep ROOT node-gyp-build@4.4.0 OK for: @serialport/bindings-cpp@10.7.0 want: ^4.3.0 106 timing idealTree:node_modules/@serialport/bindings-cpp Completed in 22ms 107 timing idealTree:node_modules/@serialport/bindings-interface Completed in 1ms 108 timing idealTree:node_modules/@serialport/parser-byte-length Completed in 0ms 109 timing idealTree:node_modules/@serialport/parser-cctalk Completed in 0ms 110 timing idealTree:node_modules/@serialport/parser-delimiter Completed in 0ms 111 timing idealTree:node_modules/@serialport/parser-inter-byte-timeout Completed in 0ms 112 timing idealTree:node_modules/@serialport/parser-packet-length Completed in 0ms 113 timing idealTree:node_modules/@serialport/parser-readline Completed in 0ms 114 timing idealTree:node_modules/@serialport/parser-ready Completed in 0ms 115 timing idealTree:node_modules/@serialport/parser-regex Completed in 0ms 116 timing idealTree:node_modules/@serialport/parser-slip-encoder Completed in 0ms 117 timing idealTree:node_modules/@serialport/parser-spacepacket Completed in 1ms 118 silly placeDep node_modules/@serialport/stream @serialport/bindings-interface@1.2.1 OK for: @serialport/stream@10.3.0 want: 1.2.1 119 timing idealTree:node_modules/@serialport/stream Completed in 13ms 120 silly placeDep ROOT ms@2.1.2 OK for: debug@4.3.4 want: 2.1.2 121 timing idealTree:node_modules/debug Completed in 7ms 122 timing idealTree:node_modules/ms Completed in 0ms 123 timing idealTree:node_modules/node-addon-api Completed in 0ms 124 timing idealTree:node_modules/node-gyp-build Completed in 0ms 125 timing idealTree:node_modules/@serialport/bindings-cpp/node_modules/@serialport/bindings-interface Completed in 0ms 126 timing idealTree:node_modules/@serialport/stream/node_modules/@serialport/bindings-interface Completed in 0ms 127 timing idealTree:buildDeps Completed in 6682ms 128 timing idealTree:fixDepFlags Completed in 5ms 129 timing idealTree Completed in 6747ms 130 timing reify:loadTrees Completed in 6751ms 131 timing reify:diffTrees Completed in 9ms 132 silly reify moves {} 133 timing reify:retireShallow Completed in 5ms 134 timing reify:createSparse Completed in 28ms 135 timing reify:loadBundles Completed in 0ms 136 silly audit bulk request { 136 silly audit 'node-red-node-serialport': [ '1.0.1' ], 136 silly audit serialport: [ '10.4.0' ], 136 silly audit '@serialport/binding-mock': [ '10.2.2' ], 136 silly audit '@serialport/bindings-cpp': [ '10.7.0' ], 136 silly audit '@serialport/parser-byte-length': [ '10.3.0' ], 136 silly audit '@serialport/parser-cctalk': [ '10.3.0' ], 136 silly audit '@serialport/parser-delimiter': [ '10.3.0' ], 136 silly audit '@serialport/parser-inter-byte-timeout': [ '10.3.0' ], 136 silly audit '@serialport/parser-packet-length': [ '10.3.0' ], 136 silly audit '@serialport/parser-readline': [ '10.3.0' ], 136 silly audit '@serialport/parser-ready': [ '10.3.0' ], 136 silly audit '@serialport/parser-regex': [ '10.3.0' ], 136 silly audit '@serialport/parser-slip-encoder': [ '10.3.0' ], 136 silly audit '@serialport/parser-spacepacket': [ '10.3.0' ], 136 silly audit '@serialport/stream': [ '10.3.0' ], 136 silly audit debug: [ '4.3.4' ], 136 silly audit '@serialport/bindings-interface': [ '1.2.2', '1.2.1' ], 136 silly audit 'node-addon-api': [ '4.3.0' ], 136 silly audit 'node-gyp-build': [ '4.4.0' ], 136 silly audit ms: [ '2.1.2' ] 136 silly audit } 137 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 368ms 138 timing auditReport:getReport Completed in 383ms 139 silly audit report {} 140 timing auditReport:init Completed in 0ms 141 timing reify:audit Completed in 386ms 142 timing reifyNode:node_modules/ms Completed in 467ms 143 timing reifyNode:node_modules/@serialport/parser-ready Completed in 493ms 144 timing reifyNode:node_modules/@serialport/parser-regex Completed in 495ms 145 timing reifyNode:node_modules/@serialport/parser-packet-length Completed in 495ms 146 timing reifyNode:node_modules/@serialport/parser-readline Completed in 496ms 147 timing reifyNode:node_modules/@serialport/parser-delimiter Completed in 497ms 148 timing reifyNode:node_modules/@serialport/parser-cctalk Completed in 498ms 149 timing reifyNode:node_modules/@serialport/parser-byte-length Completed in 499ms 150 timing reifyNode:node_modules/@serialport/parser-inter-byte-timeout Completed in 500ms 151 timing reifyNode:node_modules/node-gyp-build Completed in 513ms 152 timing reifyNode:node_modules/@serialport/bindings-interface Completed in 513ms 153 timing reifyNode:node_modules/@serialport/parser-spacepacket Completed in 513ms 154 timing reifyNode:node_modules/@serialport/binding-mock Completed in 509ms 155 timing reifyNode:node_modules/@serialport/stream/node_modules/@serialport/bindings-interface Completed in 515ms 156 timing reifyNode:node_modules/@serialport/bindings-cpp/node_modules/@serialport/bindings-interface Completed in 511ms 157 timing reifyNode:node_modules/@serialport/stream Completed in 518ms 158 timing reifyNode:node_modules/debug Completed in 519ms 159 timing reifyNode:node_modules/@serialport/parser-slip-encoder Completed in 519ms 160 timing reifyNode:node_modules/serialport Completed in 523ms 161 timing reifyNode:node_modules/node-red-node-serialport Completed in 538ms 162 timing reifyNode:node_modules/node-addon-api Completed in 560ms 163 timing reifyNode:node_modules/@serialport/bindings-cpp Completed in 587ms 164 timing reify:unpack Completed in 596ms 165 timing reify:unretire Completed in 0ms 166 timing build:queue Completed in 8ms 167 timing build:link:node_modules/node-gyp-build Completed in 10ms 168 timing build:link Completed in 10ms 169 info run @serialport/bindings-cpp@10.7.0 install node_modules/@serialport/bindings-cpp node-gyp-build 170 info run @serialport/bindings-cpp@10.7.0 install { code: 1, signal: null } 171 timing reify:rollback:createSparse Completed in 108ms 172 timing reify:rollback:retireShallow Completed in 0ms 173 timing command:install Completed in 9058ms 174 verbose stack Error: command failed 174 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27) 174 verbose stack at ChildProcess.emit (node:events:527:28) 174 verbose stack at maybeClose (node:internal/child_process:1092:16) 174 verbose stack at Socket. (node:internal/child_process:451:11) 174 verbose stack at Socket.emit (node:events:527:28) 174 verbose stack at Pipe. (node:net:710:12) 175 verbose pkgid @serialport/bindings-cpp@10.7.0 176 verbose cwd /root/.node-red 177 verbose Linux 5.10.113 178 verbose node v16.15.1 179 verbose npm v8.11.0 180 error code 1 181 error path /root/.node-red/node_modules/@serialport/bindings-cpp 182 error command failed 183 error command sh -c node-gyp-build 184 error gyp info it worked if it ends with ok 184 error gyp info using node-gyp@9.0.0 184 error gyp info using node@16.15.1 | linux | arm64 184 error gyp ERR! find Python 184 error gyp ERR! find Python Python is not set from command line or npm configuration 184 error gyp ERR! find Python Python is not set from environment variable PYTHON 184 error gyp ERR! find Python checking if "python3" can be used 184 error gyp ERR! find Python - "python3" is not in PATH or produced an error 184 error gyp ERR! find Python checking if "python" can be used 184 error gyp ERR! find Python - "python" is not in PATH or produced an error 184 error gyp ERR! find Python 184 error gyp ERR! find Python ********************************************************** 184 error gyp ERR! find Python You need to install the latest version of Python. 184 error gyp ERR! find Python Node-gyp should be able to find and use Python. If not, 184 error gyp ERR! find Python you can try one of the following options: 184 error gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" 184 error gyp ERR! find Python (accepted by both node-gyp and npm) 184 error gyp ERR! find Python - Set the environment variable PYTHON 184 error gyp ERR! find Python - Set the npm configuration variable python: 184 error gyp ERR! find Python npm config set python "/path/to/pythonexecutable" 184 error gyp ERR! find Python For more information consult the documentation at: 184 error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation 184 error gyp ERR! find Python ********************************************************** 184 error gyp ERR! find Python 184 error gyp ERR! configure error 184 error gyp ERR! stack Error: Could not find any Python installation to use 184 error gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47) 184 error gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21) 184 error gyp ERR! stack at PythonFinder. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16) 184 error gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16) 184 error gyp ERR! stack at exithandler (node:child_process:406:5) 184 error gyp ERR! stack at ChildProcess.errorhandler (node:child_process:418:5) 184 error gyp ERR! stack at ChildProcess.emit (node:events:527:28) 184 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12) 184 error gyp ERR! stack at onErrorNT (node:internal/child_process:478:16) 184 error gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) 184 error gyp ERR! System Linux 5.10.113 184 error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 184 error gyp ERR! cwd /root/.node-red/node_modules/@serialport/bindings-cpp 184 error gyp ERR! node -v v16.15.1 184 error gyp ERR! node-gyp -v v9.0.0 184 error gyp ERR! not ok 185 verbose exit 1 186 timing npm Completed in 9509ms 187 verbose unfinished npm timer reify 1655167049753 188 verbose unfinished npm timer reify:build 1655167057220 189 verbose unfinished npm timer build 1655167057221 190 verbose unfinished npm timer build:deps 1655167057222 191 verbose unfinished npm timer build:run:install 1655167057242 192 verbose unfinished npm timer build:run:install:node_modules/@serialport/bindings-cpp 1655167057244 193 verbose code 1 194 error A complete log of this run can be found in: 194 error /root/.npm/_logs/2022-06-14T00_37_29_312Z-debug-0.log