TUIRoomKit icon indicating copy to clipboard operation
TUIRoomKit copied to clipboard

web版 打包报错

Open LinYing89 opened this issue 3 years ago • 1 comments

使用npm run build命令打包报错 D:\Documents\GitHub\trtctest\node_modules\vscode-jsonrpc\lib\common\linkedMap.js:40 return this._head?.value; ^

SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:1053:16) at Module._compile (internal/modules/cjs/loader.js:1101:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at Object. (D:\Documents\GitHub\trtctest\node_modules\vscode-jsonrpc\lib\common\api.js:37:21) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: vue-tsc --noEmit --skipLibCheck && vite build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2022-06-23T07_00_01_030Z-debug.log

LinYing89 avatar Jun 23 '22 07:06 LinYing89

你好,辛苦检查一下 node 环境版本,建议升级到 v16 以上

lixin0 avatar Sep 13 '22 06:09 lixin0