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

超级报错,前端咋也运行不了 #120

Open
gaiteve opened this issue Oct 24, 2022 · 2 comments
Open

超级报错,前端咋也运行不了 #120

gaiteve opened this issue Oct 24, 2022 · 2 comments

Comments

@gaiteve
Copy link

gaiteve commented Oct 24, 2022

我没有改前端,但是疯狂报错
PS G:\OnlineJudgeFE-master> npm run dev

[email protected] dev G:\OnlineJudgeFE-master
node build/dev-server.js

module.js:550
throw err;
^

Error: Cannot find module 'chalk'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (G:\OnlineJudgeFE-master\build\check-versions.js:2:15)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: node build/dev-server.js
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 WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! G:\node-v8.1.2-win-x64\node_cache_logs\2022-10-24T23_53_22_107Z-debug.log

help me~!

@JunLiangWangX
Copy link

image
node版本切换到8.12.0,并按照文档构建

@Harry-zklcdc
Copy link
Contributor

升级node到14(16也可以试试,14目前可以使用)吧。然后升级npm(npm install npm --upgrade)

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

3 participants