nodejs-koa-blog icon indicating copy to clipboard operation
nodejs-koa-blog copied to clipboard

nuxt项目跑不起来

Open wsw123412341234 opened this issue 1 year ago • 0 comments

\Users\chend\Desktop\practice_project\web\ky-project\koa-blog-list\nuxtjs-blog-web\node_modules@nuxt\utils\node_modules\consola\dist\shared\consola.4bbae468.cjs:585 const isBadge = logObj.badge ?? logObj.level < 2; ^

SyntaxError: Unexpected token '?' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (C:\Users\chend\Desktop\practice_project\web\ky-project\koa-blog-list\nuxtjs-blog-web\node_modules@nuxt\utils\node_modules\consola\dist\index.cjs:5:15) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] dev: cross-env NODE_ENV=development nuxt npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] dev 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\chend\AppData\Roaming\npm-cache_logs\2023-08-22T14_20_34_453Z-debug.log 依赖能够安装成功,但是好像依赖包有问题,我用的时12版本node,6.14.16的npm,貌似识别不了逻辑运算符??,不知道什么原因

wsw123412341234 avatar Aug 22 '23 14:08 wsw123412341234