"Vue-cli-service: not found"의 두 판 사이의 차이

42번째 줄: 42번째 줄:
yarn add @vue/cli-service
yarn add @vue/cli-service
</syntaxhighlight>
</syntaxhighlight>
==같이 보기==
* [[Error: Cannot find module '@vue/cli-plugin-babel']]


==참고==
==참고==

2021년 6월 13일 (일) 18:32 판

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

4 같이 보기

5 참고

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