首页 > 其他分享 >| [0/8] Installing [email protected][npminstall:get] retry GET https://registry.npm.taobao.org/jwebdriver a

| [0/8] Installing [email protected][npminstall:get] retry GET https://registry.npm.taobao.org/jwebdriver a

时间:2024-03-20 10:22:51浏览次数:31  
标签:jquery npm retry node tls TLSSocket wrap uirecorder

昨天用开源项目UIRecorder初始化时报错,查看日志发现是淘宝的源证书过期,如下:

PS E:\20231213\uirecorder\uirecorder_test> 
PS E:\20231213\uirecorder\uirecorder_test> uirecorder init                                                          
    __  ______   ____                           __         
   / / / /  _/  / __ \___  _________  _________/ /__  _____
  / / / // /   / /_/ / _ \/ ___/ __ \/ ___/ __  / _ \/ ___/
 / /_/ // /   / _, _/  __/ /__/ /_/ / /  / /_/ /  __/ /    
 \____/___/  /_/ |_|\___/\___/\____/_/   \__,_/\___/_/    v3.5.3

Official Site: http://uirecorder.com
------------------------------------------------------------------

? Path扩展属性配置,除id,name,class之外 (data-id,data-name,type,data-type,role,data-role,data-value) 


D:\nodejs\node_global\node_modules\uirecorder\node_modules\.store\[email protected]\node_modules\got\index.js:74
                        ee.emit('error', new got.RequestError(err, opts));
                                         ^
ErrorClass [RequestError]: certificate has expired
    at ClientRequest.<anonymous> (D:\nodejs\node_global\node_modules\uirecorder\node_modules\.store\[email protected]\node_modules\got\index.js:74:21)
    at Object.onceWrapper (node:events:632:26)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at ClientRequest.<anonymous> (D:\nodejs\node_global\node_modules\uirecorder\node_modules\.store\[email protected]\node_modules\got\index.js:74:21)
    at Object.onceWrapper (node:events:632:26)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'CERT_HAS_EXPIRED',
  host: 'registry.npm.taobao.org',
  hostname: 'registry.npm.taobao.org',
  method: 'GET',
  path: '/uirecorder'
}

Node.js v18.19.0

就换了个npm源:npm config set registry https://registry.npmmirror.com,发现文件创建成功,但又报源证书过期,如 [npminstall:get] retry GET https://registry.npm.taobao.org/chai after 100ms, retry left 4, error: Error: certificate has expired

错误日志:

PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test> npm cache clean --force
npm WARN using --force Recommended protections disabled.
PS E:\20231213\uirecorder\uirecorder_test> 
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test> npm config set registry https://registry.npmmirror.com
PS E:\20231213\uirecorder\uirecorder_test> 
PS E:\20231213\uirecorder\uirecorder_test> npm config get registry
https://registry.npmmirror.com
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test> uirecorder init                                       
    __  ______   ____                           __         
   / / / /  _/  / __ \___  _________  _________/ /__  _____
  / / / // /   / /_/ / _ \/ ___/ __ \/ ___/ __  / _ \/ ___/
 / /_/ // /   / _, _/  __/ /__/ /_/ / /  / /_/ /  __/ /
 \____/___/  /_/ |_|\___/\___/\____/_/   \__,_/\___/_/    v3.5.3

Official Site: http://uirecorder.com
------------------------------------------------------------------

? Path扩展属性配置,除id,name,class之外 data-id,data-name,type,data-type,role,data-role,data-value
? 属性值黑名单正则
? class值黑名单正则
? 断言前隐藏
? WebDriver域名或IP 127.0.0.1
? WebDriver端口号 4444
? 需要同时测试的浏览器列表 chrome, ie 11

config.json 文件保存成功
package.json 文件创建成功
README.md 文件创建成功
screenshots 文件夹创建成功
commons 文件夹创建成功
uploadfiles 文件夹创建成功
.editorconfig 文件创建成功
.gitignore 文件创建成功
install.sh 文件创建成功
run.bat 文件创建成功
run.sh 文件创建成功
hosts 文件创建成功
.vscode/launch.json 文件创建成功

Start install project dependencies...
--------------------------------------------

- [npminstall:get] retry GET https://registry.npm.taobao.org/chai after 100ms, retry left 4, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/chai',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/resemblejs-node after 100ms, retry left 4, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/resemblejs-node',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/macaca-mocha-parallel-tests after 100ms, retry left 4, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-mocha-parallel-tests',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/macaca-reporter after 100ms, retry left 4, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-reporter',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/jwebdriver after 100ms, retry left 4, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/jwebdriver',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/selenium-standalone after 100ms, retry left 4, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/selenium-standalone',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/jquery after 100ms, retry left 4, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/jquery',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/mocha after 100ms, retry left 4, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/mocha',
  status: -1,
  headers: {},
  res: [Object]
}
| [0/8] Installing [email protected][npminstall:get] retry GET https://registry.npm.taobao.org/jwebdriver after 200ms, retry left 3, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/jwebdriver',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/resemblejs-node after 200ms, retry left 3, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/resemblejs-node',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/mocha after 200ms, retry left 3, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/mocha',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/selenium-standalone after 200ms, retry left 3, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/selenium-standalone',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/chai after 200ms, retry left 3, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/chai',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/jquery after 200ms, retry left 3, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/jquery',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/macaca-mocha-parallel-tests after 200ms, retry left 3, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-mocha-parallel-tests',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/macaca-reporter after 200ms, retry left 3, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-reporter',
  status: -1,
  headers: {},
  res: [Object]
}
- [0/8] Installing [email protected][npminstall:get] retry GET https://registry.npm.taobao.org/chai after 300ms, retry left 2, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/chai',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/jwebdriver after 300ms, retry left 2, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/jwebdriver',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/resemblejs-node after 300ms, retry left 2, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/resemblejs-node',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/macaca-mocha-parallel-tests after 300ms, retry left 2, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-mocha-parallel-tests',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/jquery after 300ms, retry left 2, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/jquery',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/selenium-standalone after 300ms, retry left 2, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/selenium-standalone',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/macaca-reporter after 300ms, retry left 2, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-reporter',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/mocha after 300ms, retry left 2, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/mocha',
  status: -1,
  headers: {},
  res: [Object]
}
| [0/8] Installing [email protected][npminstall:get] retry GET https://registry.npm.taobao.org/selenium-standalone after 400ms, retry left 1, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/selenium-standalone',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/resemblejs-node after 400ms, retry left 1, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/resemblejs-node',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/jquery after 400ms, retry left 1, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/jquery',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/jwebdriver after 400ms, retry left 1, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/jwebdriver',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/macaca-mocha-parallel-tests after 400ms, retry left 1, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-mocha-parallel-tests',
  status: -1,
  headers: {},
  res: [Object]
}
/ [0/8] Installing [email protected][npminstall:get] retry GET https://registry.npm.taobao.org/macaca-reporter after 400ms, retry left 1, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-reporter',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/mocha after 400ms, retry left 1, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/mocha',
  status: -1,
  headers: {},
  res: [Object]
}
[npminstall:get] retry GET https://registry.npm.taobao.org/chai after 400ms, retry left 1, error: Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/chai',
  status: -1,
  headers: {},
  res: [Object]
}
× Install fail! ResponseError: certificate has expired, GET https://registry.npm.taobao.org/macaca-mocha-parallel-tests -1 (connected: true, keepalive socket: false, agent status: {"createSocketCount":40,"create
SocketErrorCount":0,"closeSocketCount":32,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"registry.npm.taobao.org:443:::::::::::::::::::::":8},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12) {
  code: 'CERT_HAS_EXPIRED',
  name: 'ResponseError',
  data: undefined,
  path: '/macaca-mocha-parallel-tests',
  status: -1,
  headers: {},
  res: {
    status: -1,
    statusCode: -1,
    statusMessage: null,
    headers: {},
    size: 0,
    aborted: false,
    rt: 74,
    keepAliveSocket: false,
    data: undefined,
    requestUrls: [
      'https://registry.npm.taobao.org/macaca-mocha-parallel-tests',
      'https://registry.npm.taobao.org/macaca-mocha-parallel-tests',
      'https://registry.npm.taobao.org/macaca-mocha-parallel-tests',
      'https://registry.npm.taobao.org/macaca-mocha-parallel-tests',
      'https://registry.npm.taobao.org/macaca-mocha-parallel-tests'
    ],
    timing: null,
    remoteAddress: '111.62.25.111',
    remotePort: 443,
    socketHandledRequests: 1,
    socketHandledResponses: 0
  }
}

Node.js v18.19.0
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test> 
PS E:\20231213\uirecorder\uirecorder_test>

淘宝的源证书不行,就换个华为的:cnpm confg set registry https://mirrors.huaweicloud.com/repository/npm/,执行cnpm config get registry看看是否切换成功,下面是执行成功数据

PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test> cnpm confg set registry https://mirrors.huaweicloud.com/repository/npm/
PS E:\20231213\uirecorder\uirecorder_test> 
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test>
PS E:\20231213\uirecorder\uirecorder_test> uirecorder init                                                        
    __  ______   ____                           __         
   / / / /  _/  / __ \___  _________  _________/ /__  _____
  / / / // /   / /_/ / _ \/ ___/ __ \/ ___/ __  / _ \/ ___/
 / /_/ // /   / _, _/  __/ /__/ /_/ / /  / /_/ /  __/ /
 \____/___/  /_/ |_|\___/\___/\____/_/   \__,_/\___/_/    v3.5.3

Official Site: http://uirecorder.com
------------------------------------------------------------------

? Path扩展属性配置,除id,name,class之外 data-id,data-name,type,data-type,role,data-role,data-value
? 属性值黑名单正则
? class值黑名单正则
? 断言前隐藏
? WebDriver域名或IP 127.0.0.1
? WebDriver端口号 4444
? 需要同时测试的浏览器列表 chrome, ie 11

config.json 文件保存成功

Start install project dependencies...
--------------------------------------------

√ Installed 8 packages
√ Linked 0 latest versions
√ Run 0 scripts
√ All packages installed (used 11ms, speed 0B/s, json 0(0B), tarball 0B)

Start install webdriver dependencies...
--------------------------------------------


> [email protected] installdriver
> selenium-standalone install --drivers.firefox.baseURL=http://npm.taobao.org/mirrors/geckodriver --baseURL=http://npm.taobao.org/mirrors/selenium --drivers.chrome.baseURL=http://npm.taobao.org/mirrors/chromedriver --drivers.ie.baseURL=http://npm.taobao.org/mirrors/selenium


----------

selenium-standalone installation starting
----------


---

selenium install:
from: http://npm.taobao.org/mirrors/selenium/3.141/selenium-server-standalone-3.141.59.jar
to: E:\20231213\uirecorder\uirecorder_test\node_modules\selenium-standalone\.selenium\selenium-server\3.141.59-server.jar
---
chrome install:
from: http://npm.taobao.org/mirrors/chromedriver/113.0.5672.63/chromedriver_win32.zip
to: E:\20231213\uirecorder\uirecorder_test\node_modules\selenium-standalone\.selenium\chromedriver\latest-x64-chromedriver
---
ie install:
from: http://npm.taobao.org/mirrors/selenium/3.150/IEDriverServer_x64_3.150.1.zip
to: E:\20231213\uirecorder\uirecorder_test\node_modules\selenium-standalone\.selenium\iedriver\3.150.1-x64-IEDriverServer.exe
---
firefox install:
from: http://npm.taobao.org/mirrors/geckodriver/v0.34.0/geckodriver-v0.34.0-win64.zip
to: E:\20231213\uirecorder\uirecorder_test\node_modules\selenium-standalone\.selenium\geckodriver\latest-x64-geckodriver
---
edge install:
from: https://download.microsoft.com/download/F/8/A/F8AF50AB-3C3A-4BC4-8773-DC27B32988DD/MicrosoftWebDriver.exe
to: E:\20231213\uirecorder\uirecorder_test\node_modules\selenium-standalone\.selenium\edgedriver\17134-MicrosoftEdgeDriver.exe
---
chromiumedge install:
from: https://msedgedriver.azureedge.net/122.0.2365.92/edgedriver_win64.zip
to: E:\20231213\uirecorder\uirecorder_test\node_modules\selenium-standalone\.selenium\chromiumedgedriver\latest-x64-msedgedriver




-----

selenium-standalone installation finished
-----

PS E:\20231213\uirecorder\uirecorder_test> uirecorder start

 

最后提个醒,不要用cnpm install --insecure命令不校验证书,或者用cnpm confg set registry http://registry.npm.taobao.org/,因为放弃证书校验,或者使用http的源会有一定的安全风险。

标签:jquery,npm,retry,node,tls,TLSSocket,wrap,uirecorder
From: https://www.cnblogs.com/fenglangjuxu/p/18084648

相关文章

  • 当我们执行 npm run serve 时到底发生了什么?
    在前端开发中,npmrunserve 是一个常见的命令,尤其是在使用VueCLI构建项目时。但是为什么直接运行 vue-cli-serviceserve 会报错,但使用 npmrunserve 却可以成功启动项目呢?npmscripts的基本原理先回顾一下 npm 命令的基本原理。在 package.json 文件中的 "scrip......
  • 【NodeJS】GLIBC_2.28 not found CentOS7不兼容Node高版本 npm报错
    CentOS7环境下安装Nvm,在执行nvmuse18.17.0后执行node-v爆出如下错误 bash复制代码node:/lib64/libm.so.6:version`GLIBC_2.27'notfound(requiredbynode)node:/lib64/libc.so.6:version`GLIBC_2.25'notfound(requiredbynode)node:/lib64/libc.so......
  • jquery ajax对promise封装
    封装://封装ajax请求成promise,方便循环请求数据asyncfunctioncrateAjax(url,param){returnnewPromise((resolve,reject)=>{$.ajax({url:url,type:"post",data:JSON.stringify(param),dataType:&......
  • pnpm 设置代理
    1.在环境变量里添加变量:HTTP_PROXY:http://127.0.0.1:7890HTTPS_PROXY:https://127.0.0.1:7890也可以通过命令来取消或设置环境变量里的代理:一般只设置proxy,而不用设只https_proxy的代理就够用了。关闭代理pnpmconfigsetproxypnpmconfigsethttps-proxy......
  • jQuery+CSS3自动轮播焦点图特效源码
    jQuery+CSS3自动轮播焦点图特效源码,源码由HTML+CSS+JS组成,双击html文件可以本地运行效果,也可以上传到服务器里面下载地址jQuery+CSS3自动轮播焦点图特效源码......
  • [npm] npm打包/运行时,报:"95% emitting CompressionPlugin ERROR Error: error:030801
    1问题描述环境信息windows10node:v20.11.1>node--versionv20.11.1vue:2.6.12[dependencies]"vue":"2.6.12""vue-count-to":"1.0.13""vue-cropper":"0.5.5""vue-meta":&q......
  • 内网私仓全流程搭建记录(二)-npm私仓提交与拉取
    1、npm私仓依赖下载及本地上传方法一1)使用Pycharm创建py文档,写入如下py代码:importosimportreimportaiohttpimportasynciofromurllib.parseimporturlparsefromconcurrent.futuresimportThreadPoolExecutor#创建存储文件夹download_folder="sourcenpm"os.m......
  • nvm 安装node npm install -g cnpm
     "node-sass":"^4.14.1",需要安装v14.9.0https://nodejs.org/dist/v14.9.0/node-v14.9.0-x86.msi参考https://www.cnblogs.com/biehongli/p/12756256.html node-vnpm-v  npminstall-gcnpm--registry=https://registry.npm.taobao.org出现若下提示Wind......
  • [nodejs] NodeJs/NPM入门教程
    0序nodejs是运行在服务器端的js,常用于前端工程师在本地电脑、或生产环境部署调试或运行前端工程。回想起来,上次使用nodejs,还在5年前做大学毕业设计时,基于前后端分离的实践(那时,业界正在兴起前后端分离的浪潮。当然了,现在的web工程,前后端分离已是默认的技术选择了)这次重......
  • jQuery基础
    jQuery是JavaScript的第三方的模块组件(类库),可以利用jQuery来实现bootstrap的动态效果(目前bootstrapV5可以不依赖jQuery就能实现效果)首先需要下载jQuery,存放到pycharm的web中的static目录下引用方式和JavaScript一致,在body的尾部写入<scriptsrc=".../.../jQuery.min.j......