1.0.29 • Published 4 years ago
mio-mock v1.0.29
前端的 mock 数据,走 network 请求
使用方法
在 package.json 的scripts中添加如下命令
"mock": "cd ./node_modules/mio-mock/lib && node mock-server.js"运行 yarn mock 即可
临时记录一下这次发布包遇到的问题
从2021年10月4日开始,所有与 npm 网站和 npm 注册表的连接(包括软件包安装)必须使用 TLS 1.2 或更高版本。
很多朋友在发布 npm 包时可能会遇到提示:
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more inf
ormation: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm ERR! code E426这时候可以首先将 npm 镜像地址设为 https 的地址:
npm config set registry https://registry.npmjs.org然后再尝试发布,如果还是报错,可以运行以下命令支持 TLS 1.2:
npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz运行完会收到提示:
Hello! The tls-test package was successfully downloaded and installed. Congratulations! Your package manager appears to support TLS 1.2.如果收到错误提示,可以升级 node 到包含 npm7 以上的版本以支持 TLS1.2,升级完检查下 npm 版本,如果没到 7.0 可以按照提示升级到 7.0 以上。
1.0.29
4 years ago
1.0.25
4 years ago
1.0.24
4 years ago
1.0.23
4 years ago
1.0.22
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago