Error: pages.json解析失败,不符合 json 规范 10:15:30.108 Unexpected token ] in JSON at position 8800 10:15:30.111 at getJson (C:\develop\HBuilderX.3.8.3.20230526\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-cli-shared\lib\json.js:35:11) 10:15:30.112 at getPagesJson (C:\develop\HBuilderX.3.8.3.20230526\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-cli-shared\lib\pages.js:39:27) 10:15:30.115 at Object.<anonymous> (C:\develop\HBuilderX.3.8.3.20230526\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\env.js:201:22) 10:15:30.116 at Module._compile (node:internal/modules/cjs/loader:1126:14) 10:15:30.120 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) 10:15:30.120 at Module.load (node:internal/modules/cjs/loader:1004:32) 10:15:30.125 at Function.Module._load (node:internal/modules/cjs/loader:839:12) 10:15:30.125 at Module.require (node:internal/modules/cjs/loader:1028:19) 10:15:30.130 at require (node:internal/modules/cjs/helpers:102:18) 10:15:30.130 at Object.<anonymous> (C:\develop\HBuilderX.3.8.3.20230526\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\index.js:5:5) 10:15:30.135 Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com 10:15:30.136 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) { 10:15:30.141 errno: -3008, 10:15:30.141 code: 'ENOTFOUND', 10:15:30.146 syscall: 'getaddrinfo', 10:15:30.146 hostname: '96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com' 10:15:30.150 } 报错解释
时间: 2023-12-21 12:07:27 浏览: 201
json出错提示
这段报错信息包含两个错误。第一个错误是 pages.json 解析失败,不符合 json 规范,具体错误是在第 8800 个字符位置出现了一个意外的 ] 符号。第二个错误是 getaddrinfo ENOTFOUND,表示无法解析主机名 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com。这可能是因为网络问题或者主机名拼写错误导致的。
阅读全文