树莓派docker安装的ha,通过商店安装的Nodered,想增加节点,报很多错。试过重装、升级nodejs,npm等方法都不行,小白已经不知从何下手了,跪求大神指点!
-----------------------------------------------------------
2022-12-05T12:53:36.606Z 安装 : node-red-contrib-serialport-rs485 0.0.6
2022-12-05T12:54:12.836Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-12-05T13:00:41.133Z [err] npm WARN config production Use `--omit=dev` instead.
2022-12-05T13:01:01.465Z [err] npm
2022-12-05T13:01:01.467Z [err] WARN deprecated [email protected]: This version is no longer supported, to receive security updates and bug fixes upgrade to the latest version.
2022-12-05T13:01:19.584Z [err] npm
2022-12-05T13:01:19.589Z [err] ERR! code 1
2022-12-05T13:01:19.589Z [err] npm ERR! path /config/node-red/node_modules/serialport
2022-12-05T13:01:19.610Z [err] npm ERR!
2022-12-05T13:01:19.611Z [err] command failed
2022-12-05T13:01:19.611Z [err] npm
2022-12-05T13:01:19.613Z [err] ERR! command sh -c node-pre-gyp install --fallback-to-build
2022-12-05T13:01:19.622Z [err] npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/config/node-red/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/config/node-red/node_modules/serialport/build/Release --python=/usr/bin/python3' (1)
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp info it worked if it ends with ok
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp info using [email protected]
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp info using [email protected] | linux | arm64
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp info check checked for "/config/node-red/node_modules/serialport/build/Release/serialport.node" (not found)
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-arm64.tar.gz
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-arm64.tar.gz
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-arm64.tar.gz
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI) (falling back to source compile with node-gyp)
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-arm64.tar.gz
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-arm64.tar.gz
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI) (falling back to source compile with node-gyp)
2022-12-05T13:01:19.625Z [err] npm ERR! node-pre-gyp http Connection closed while downloading tarball file
2022-12-05T13:01:19.625Z [err] npm ERR! gypgyp infoinfo it worked if it ends withit worked if it ends with ok
2022-12-05T13:01:19.625Z [err] npm ERR! ok
2022-12-05T13:01:19.625Z [err] npm ERR! gypgyp infoinfo usingusing [email protected]
2022-12-05T13:01:19.625Z [err] npm ERR! [email protected]
2022-12-05T13:01:19.625Z [err] npm ERR! gypgyp infoinfo usingusing [email protected] | linux | arm64
2022-12-05T13:01:19.625Z [err] npm ERR! [email protected] | linux | arm64
2022-12-05T13:01:19.625Z [err] npm ERR! gyp info ok
2022-12-05T13:01:19.625Z [err] npm ERR! gyp info ok
2022-12-05T13:01:19.625Z [err] npm ERR! gyp info it worked if it ends with ok
2022-12-05T13:01:19.625Z [err] npm ERR!
2022-12-05T13:01:19.629Z [err] gyp info it worked if it ends with ok
2022-12-05T13:01:19.629Z [err] npm ERR! gyp info using [email protected]
2022-12-05T13:01:19.629Z [err] npm ERR! gyp info using [email protected] | linux | arm64
2022-12-05T13:01:19.629Z [err] npm ERR! gyp info using [email protected]
2022-12-05T13:01:19.629Z [err] npm ERR! gyp info using [email protected] | linux | arm64
2022-12-05T13:01:19.629Z [err] npm ERR! gypgyp ERR! find Python
2022-12-05T13:01:19.629Z [err] npm ERR! gyp ERR! ERR!find Python checking Python explicitly set from command line or npm configuration
2022-12-05T13:01:19.629Z [err] npm ERR! gypfind Python ERR! find Python
2022-12-05T13:01:19.629Z [err] npm ERR! - "--python=" or "npm config get python" is "/usr/bin/python3"
2022-12-05T13:01:19.629Z [err] npm ERR! gyp ERR! find Python - "/usr/bin/python3" is not in PATH or produced an error
2022-12-05T13:01:19.629Z [err] npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
2022-12-05T13:01:19.629Z [err] npm ERR!
2022-12-05T13:01:19.666Z [err] gyp ERR! find Python checking if "python3" can be used
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python checking Python explicitly set from command line or npm configuration
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python - "--python=" or "npm config get python" is "/usr/bin/python3"
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python - "/usr/bin/python3" is not in PATH or produced an error
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR!gyp find PythonERR! Python is not set from environment variable PYTHON
2022-12-05T13:01:19.666Z [err] npm ERR! gyp find PythonERR! - "python3" is not in PATH or produced an error
2022-12-05T13:01:19.666Z [err] npm ERR! gyp find PythonERR! checking if "python3" can be used
2022-12-05T13:01:19.666Z [err] npm ERR! find Python checking if "python" can be used
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python **********************************************************
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python You need to install the latest version of Python.
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! gypfind Python Node-gyp should be able to find and use Python. If not,
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR!ERR! find Pythonfind Python you can try one of the following options:
2022-12-05T13:01:19.666Z [err] npm ERR! - "python3" is not in PATH or produced an error
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Pythonfind Python checking if "python" can be used
2022-12-05T13:01:19.666Z [err] npm ERR! - Use the switch --python="/path/to/pythonexecutable"
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Pythonfind Python - "python" is not in PATH or produced an error
2022-12-05T13:01:19.666Z [err] npm ERR! (accepted by both node-gyp and npm)
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Pythonfind Python
2022-12-05T13:01:19.666Z [err] npm ERR! - Set the environment variable PYTHON
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Pythonfind Python **********************************************************
2022-12-05T13:01:19.666Z [err] npm ERR! - Set the npm configuration variable python:
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Pythonfind Python You need to install the latest version of Python.
2022-12-05T13:01:19.666Z [err] npm ERR! npm config set python "/path/to/pythonexecutable"
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Pythonfind Python Node-gyp should be able to find and use Python. If not,
2022-12-05T13:01:19.666Z [err] npm ERR! For more information consult the documentation at:
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Pythonfind Python you can try one of the following options:
2022-12-05T13:01:19.666Z [err] npm ERR! https://github.com/nodejs/node-gyp#installation
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Pythonfind Python **********************************************************
2022-12-05T13:01:19.666Z [err] npm ERR! - Use the switch --python="/path/to/pythonexecutable"
2022-12-05T13:01:19.666Z [err] npm ERR! gypgyp ERR!ERR! find Python
2022-12-05T13:01:19.666Z [err] npm ERR! find Python (accepted by both node-gyp and npm)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python For more information consult the documentation at:
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python **********************************************************
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! find Python
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! configure error
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! configure error
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at exithandler (node:child_process:408:5)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR!gyp stackERR! at ChildProcess.errorhandler (node:child_process:420:5)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp stackERR! Error: Could not find any Python installation to use
2022-12-05T13:01:19.666Z [err] npm ERR! gypstack at ChildProcess.emit (node:events:513:28)
2022-12-05T13:01:19.666Z [err] npm ERR! ERR!gyp stackERR! at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
2022-12-05T13:01:19.666Z [err] npm ERR! gypstack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-12-05T13:01:19.666Z [err] npm ERR! ERR!gyp stackERR! at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
2022-12-05T13:01:19.666Z [err] npm ERR! gypstack at onErrorNT (node:internal/child_process:478:16)
2022-12-05T13:01:19.666Z [err] npm ERR! ERR!gyp stackERR! at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
2022-12-05T13:01:19.666Z [err] npm ERR! gypstack at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-12-05T13:01:19.666Z [err] npm ERR! ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at exithandler (node:child_process:408:5)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:420:5)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-12-05T13:01:19.666Z [err] npm ERR! gyp ERR! gypstack at onErrorNT (node:internal/child_process:478:16)
2022-12-05T13:01:19.666Z [err] npm ERR! ERR!gyp ERR!System Linux 5.15.76-v8+
2022-12-05T13:01:19.666Z [err] npm ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-12-05T13:01:19.666Z [err] npm
2022-12-05T13:01:19.677Z [err] ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/config/node-red/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/config/node-red/node_modules/serialport/build/Release" "--python=/usr/bin/python3"
2022-12-05T13:01:19.677Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/serialport
2022-12-05T13:01:19.677Z [err] npm ERR! gyp ERR! node -v v16.17.1
2022-12-05T13:01:19.677Z [err] npm ERR! gypgyp ERR!ERR! node-gyp -vSystem v9.0.0
2022-12-05T13:01:19.677Z [err] npm ERR! Linux 5.15.76-v8+
2022-12-05T13:01:19.677Z [err] npm ERR! gyp ERR! not ok
2022-12-05T13:01:19.677Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/config/node-red/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/config/node-red/node_modules/serialport/build/Release" "--python=/usr/bin/python3"
2022-12-05T13:01:19.677Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/serialport
2022-12-05T13:01:19.677Z [err] npm ERR! gyp ERR! node -v v16.17.1
2022-12-05T13:01:19.677Z [err] npm ERR! gyp ERR! node-gyp -v v9.0.0
2022-12-05T13:01:19.677Z [err] npm ERR! gyp ERR! not ok
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! build error
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/config/node-red/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/config/node-red/node_modules/serialport/build/Release --python=/usr/bin/python3' (1)
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/config/node-red/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1093:16)
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! System Linux 5.15.76-v8+
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/config/node-red/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! cwd /config/node-red/node_modules/serialport
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! node -v v16.17.1
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.6.32
2022-12-05T13:01:19.677Z [err] npm ERR! node-pre-gyp ERR! not ok
2022-12-05T13:01:19.708Z [err]
2022-12-05T13:01:19.710Z [err] npm ERR!
2022-12-05T13:01:19.711Z [err] A complete log of this run can be found in:
2022-12-05T13:01:19.711Z [err] npm ERR! /root/.npm/_logs/2022-12-05T13_00_40_512Z-debug-0.log
2022-12-05T13:01:19.785Z rc=1
|