错误: 证书已过期 [问题] npm init 导致的错误
请描述您遇到的问题。 你的项目类型是什么? 应用程序(构建通用应用程序) ? 你的应用程序类型是什么? 小程序跨端应用 ? 你想使用的语言类型是什么? TypeScript 正在在 /Users/oshuxin/Desktop/Myproject/rax-mp-example 中创建新的 Rax 项目 node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise */); ^ <ref *1> Error: certificate has expired at TLSSocket.onConnectSecure (node:_tls_wrap:1539:34) at TLSSocket.emit (node:events:513:28) at TLSSocket._finishInit (node:_tls_wrap:953:8) at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12) { code: 'CERT_HAS_EXPIRED', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [Function: httpAdapter], transformRequest: [[Function: transformRequest]], transformResponse: [[Function: transformResponse]], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, */*', 'User-Agent': 'axios/0.23.0' }, url: 'https://registry.npm.taobao.org/@rax-materials/scaffolds-app-ts', method: 'get', data: undefined } request: <ref *4> Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 0, constructed: true, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: false, closeEmitted: false, [Symbol(kOnFinished)]: [] } _events: [Object: null prototype] { response: [Function: handleResponse], error: [Function: handleRequestError] } _eventsCount: 2, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: 10485760, protocol: 'https:', path: '/@rax-materials/scaffolds-app-ts', method: 'GET', headers: { Accept: 'application/json, text/plain, */*', 'User-Agent': 'axios/0.23.0' }, agent: undefined, agents: { http: undefined, https: undefined }, auth: undefined, hostname: 'registry.npm.taobao.org', port: null, nativeProtocols: { 'http:': { _connectionListener: [Function: connectionListener], … } } }
内容来源: alibaba/rax