1.0.29 • Published 2 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
2 years ago
1.0.25
2 years ago
1.0.24
2 years ago
1.0.23
2 years ago
1.0.22
2 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago