Saki's 研究记录

esbuild: Failed to install correctly
问题安装vue项目报错Error: esbuild: Failed to install correctly首先确认是esbuild的报错,导致安装失败。报错信息提示我本地的npm版本< v7,可以执行命令查看下npm版本: 12npm -v6.14.4 版本太低了。 解决办法升级npm: 12npm cache clean -fnpm install npm@latest -g 再执行命令查看下npm版本: 12npm -v8.1.4 Done.
golang调用etcdv3报错undefined
问题最近准备使用Etcd开发一些分布式的应用,结果第一步就翻车了。当信心满满的使用go mod开始go mod tidy时etcdv3有报错: 123456# github.com/coreos/etcd/clientv3/balancer/pickerundefined: balancer.PickOptionsundefined: balancer.PickOptions# github.com/coreos/etcd/clientv3/balancer/resolver/endpointundefined: resolver.BuildOptionundefined: resolv...
Elasticsearch: missing authentication credentials for REST request
场景Elasticsearch在开启xpack认证之后, 直接通过curl访问接口会报错: 1missing authentication credentials for REST request 解决使用curl时带上认证相关参数: -u, –user <user:password> Server user and password 在终端curl请求ES的REST API时, 可以用以下形式: 12curl -u yourusername:yourpassword -XGET ‘localhost:9200/_cat/health’1637081511 16:5...
解决 Empty reply from server
SSH Key新服务器上git clone自己的项目时报错: 1fatal: unable to access ‘https://github.com/***/***.git/‘: Empty reply from server 检查密匙: 1ls -al ~/.ssh 应该会有一个id_rsa.pub 文件,如果没有,在终端运行ssh-keygen -t rsa以生成之。 打开你的github主页,打开Add SSH key的页面https://github.com/settings/ssh按照2的做法添加密钥最后测试验证: 1ssh -T git@github.com 正常情况下应该...