美文网首页
tuya iot 基于 Pulsar 获取消息推送(Node.j

tuya iot 基于 Pulsar 获取消息推送(Node.j

作者: _Net_ | 来源:发表于2023-05-27 05:18 被阅读0次

    $ npm install -g yarn

    npm ERR! code ENOTFOUND

    npm ERR! syscall getaddrinfo

    npm ERR! errno ENOTFOUND

    npm ERR! network request to https://registry.npmjs.org/yarn failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org

    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 config set proxy null

    $ npm config set https-proxy null

    $ npm config set registry https://registry.npm.taobao.org

    $ npm config get registry

    正确步骤:

    1.$ npm install -g yarn

    2.$ yarn build

    3.$ yarn deploy

    4.$ yarn example

    相关文章

      网友评论

          本文标题:tuya iot 基于 Pulsar 获取消息推送(Node.j

          本文链接:https://www.haomeiwen.com/subject/nkyledtx.html