【问题标题】:Installation of module node-red-node-arduino failed:安装模块 node-red-node-arduino 失败:
【发布时间】:2021-05-15 05:29:59
【问题描述】:

我正在尝试通过 node-red 网站说明中概述的管理调色板安装功能安装 node-red node-arduino。 Node-red 安装在我的 Windows 10 PC 上,我通过 USB COM 端口连接了一个 Arduino。 Arduino 已将标准固件加载到板上。当我尝试安装 arduino-node 时,我收到一条冗长的错误消息,似乎没有成功搜索 Python,尽管 node-arduino 的要求中没有提到 Python。这是错误消息:

prebuild-install WARN install No prebuilt binaries found (target=14.16.1 runtime=node arch=x64 libc= platform=win32)
gyp ERR! find Python 
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.ex...

注意:以上是错误消息,不是代码,但必须将其标记为这样才能被接受

我是 Node-Red 的新手,非常感谢任何帮助。

【问题讨论】:

    标签: arduino node-red


    【解决方案1】:

    Python 是必须构建本机组件的任何 nodejs 包的要求。在这种情况下,它需要构建node-serial 模块才能访问COM 端口。您需要安装受支持的 Python 版本才能使其正常工作。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-01-16
    • 2020-07-18
    • 2020-02-25
    • 1970-01-01
    • 2021-02-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多