Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt项目跑不起来 #224

Open
wsw123412341234 opened this issue Aug 22, 2023 · 0 comments
Open

nuxt项目跑不起来 #224

wsw123412341234 opened this issue Aug 22, 2023 · 0 comments

Comments

@wsw123412341234
Copy link

\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,貌似识别不了逻辑运算符??,不知道什么原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant