lfb / nodejs-koa-blog

基于 Node.js Koa2 实战开发的一套完整的博客项目网站
https://www.boblog.com
MIT License
1.78k stars 460 forks source link

nuxt项目跑不起来 #224

Open wsw123412341234 opened 1 year ago

wsw123412341234 commented 1 year ago

\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! frontend@1.0.0 dev: cross-env NODE_ENV=development nuxt npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the frontend@1.0.0 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,貌似识别不了逻辑运算符??,不知道什么原因