如何解决无法使用 rsocket-tcp-client 包
我想让客户端重新连接到我的服务器,以防服务器重新启动。我正在尝试以下piece of code。问题是,将此行 "rsocket-tcp-client": "^0.0.23"
添加到我的 package.json
并运行 $npm install && ng update && ng serve
后,我收到以下错误消息:
Error: ./node_modules/rsocket-tcp-client/build/RSocketTcpClient.js
Module not found: Error: Can't resolve 'net' in '/Users/gitter/myproject/node_modules/rsocket-tcp-client/build'
Error: ./node_modules/rsocket-tcp-client/build/RSocketTcpClient.js
Module not found: Error: Can't resolve 'tls' in '/Users/gitter/myproject/node_modules/rsocket-tcp-client/build'
欢迎任何帮助。
解决方法
如果要使用该示例代码,还需要安装 tls 和 net 包。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。