vue-cli-service: not found

1 개요[ | ]

vue-cli-service: not found
sh: 1: vue-cli-service: not found
/bin/sh: 1: vue-cli-service: not found

2 문제상황[ | ]

root@localhost:/app/frontend$ npm run serve

> frontend@0.1.0 serve /app/frontend
> vue-cli-service serve

sh: 1: vue-cli-service: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! frontend@0.1.0 serve: `vue-cli-service serve`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the frontend@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 ERR!     /root/.npm/_logs/2021-06-13T09_22_18_659Z-debug.log
root@localhost:/app/frontend$ yarn serve
yarn run v1.22.10
$ vue-cli-service serve
/bin/sh: 1: vue-cli-service: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

3 해결방법[ | ]

npm i @vue/cli-service
# 또는
yarn add @vue/cli-service
  • 해당 모듈만 없는 게 아니라, 프로젝트에 필요한 패키지들이 설치 안된 경우일 수도 있는데, 그런 경우라면 npm install 또는 yarn install

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}