[node.js] npm run serve 오류

깨미·2021년 2월 15일
2

node.js

목록 보기
1/5
post-thumbnail

terminal 에서 npm run serve 시 오류 발생

> frontend_source@0.1.0 serve
> vue-cli-service serve
'vue-cli-service'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.

시도한 방법

  • node_modules 디렉토리 삭제
  • node.js 삭제 후 재설치
  • npm install -g @vue/cli
  • npm install vue-cli-service

해결한 방법 (선택한 방법 : 2)

  1. yarn 사용
    npm install -g yarn
    yarn install
    yarn run serve
  2. npm install --legacy-peer-deps
    ✔ npm install 이 되지 않은 경우에도 생기는 에러니 그냥 npm install도 해보자
profile
vis ta vie

0개의 댓글