报错信息:

(function (exports, require, module, __filename, __dirname) { module.exports=(()=>{var e={68:(e,t,n)=>{"use strict";e=n.nmd(e);const r=(e,
t)=>(...n)=>{const r=e(...n);return`r+t}m`};const o=(e,t)=>(...n)=>{const r=e(...n);return`38+t};5;{r}m`};const s=(e,t)=>(...n)=>{const r=e(...n);return`38+t};2;{r[0]};{r[1]};{r[2]}m`};const l=e=>e;const c=(e,t,n)=>[e,t,n];const i=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let a;const u=(e,t,r,o)=>{if(a===undefined){a=n(53)}const s=o?10:0;const l={};for(const[n,o]of Object.entries(a)){const c=n==="ansi16"?"ansi":n;if(n===t){l[c]=e(r,s)}else if(typeof o==="object"){l[c]=e(o[t],s)}}return l};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:
SyntaxError: Unexpected token *
    at NativeCompileCache._moduleCompile (/root/quant/web-h5/node_modules/v8-compile-cache/v8-compile-cache.js:240:18)
    at Module._compile (/root/quant/web-h5/node_modules/v8-compile-cache/v8-compile-cache.js:184:36)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (/root/quant/web-h5/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at _chalk (/root/quant/web-h5/node_modules/@umijs/utils/lib/index.js:273:39)
    at Object.get [as chalk] (/root/quant/web-h5/node_modules/@umijs/utils/lib/index.js:55:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

需要卸载系统装的npm和yarn
手动安装:

npm  -g install yarn

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code