代码之家  ›  专栏  ›  技术社区  ›  blackhelmet34

无法在hassio上以节点红色安装任何模块(节点)

  •  0
  • blackhelmet34  · 技术社区  · 7 年前

    我无法在Raspberry Pi上运行的hassio上以节点红色安装任何模块(节点)。它以前工作过,但现在没有。我没有更改任何配置,尽管节点red可能会自动更新。尝试安装时,出现以下错误:

    npm info it worked if it ends with ok
    npm info using npm@5.6.0
    npm info using node@v10.0.0
    npm ERR! code ENOTFOUND
    npm ERR! errno ENOTFOUND
    npm ERR! network request to https://registry.npmjs.org/node-red-contrib-telegrambot-home failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
    npm ERR! network This is a problem related to network connectivity.
    npm ERR! network In most cases you are behind a proxy or have bad network settings.
    npm ERR! network 
    npm ERR! network If you are behind a proxy, please make sure that the
    npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2018-04-30T01_39_51_895Z-debug.log
    

    没有代理。我试图编辑 package.json 将模块添加到依赖项,但这也不起作用。

    1 回复  |  直到 7 年前
        1
  •  0
  •   blackhelmet34    7 年前

    这是一个DNS问题。Pi孔也在RPi上运行并导致问题。使用将DNS设置为Google this info