반응형
Notice
Recent Posts
Recent Comments
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Archives
Today
Total
관리 메뉴

개발쬬

[Vue Error] npm run serve 오류 vue-cli-service: command not found 본문

쬬는 개발중

[Vue Error] npm run serve 오류 vue-cli-service: command not found

Joooooooo 2023. 6. 24. 00:30
반응형

git clone 을 실행하고

npm run serve 를 실행했는데 해당 오류가 발생했다. 

 

 

sh: vue-cli-service: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! chart@0.1.0 serve: `vue-cli-service serve`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the chart@0.1.0 serve 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 ci 를 입력 하면 정상적으로 실행 할 수 있다!

반응형