본문 바로가기
쬬는 개발중

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

by Joooooooo 2023. 8. 3.
반응형

 

 

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

 

 

 

 

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
npm run serve

 

를 입력해주고 패키지를 재실행 해주면 다시 정상 작동된다.!

반응형