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

2023-05-27  本文已影响0人  _Net_

$ 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

上一篇下一篇

猜你喜欢

热点阅读