인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

roundvoyage2680's profile image
roundvoyage2680

asked

Getting Started with Vue.js - Age of Vue.js

Differences between CLI 2.x and 3.x / Creating a project and running the server

서버가 실행되지 않습니다~

Written on

·

1.7K

1

아래와 같은 에러메세지와 함께 서버가 실행되지 않네요ㅜ

PS C:\test\learn-vue-js-master\vue-cli-complete> npm run serve

> vue-cli@0.1.0 serve C:\test\learn-vue-js-master\vue-cli-complete

> vue-cli-service serve

npm ERR! vue-cli@0.1.0 serve: `vue-cli-service serve`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the vue-cli@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!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2019-11-03T14_49_45_990Z-debug.log

javascriptvuejs

Answer 2

0

roundvoyage2680님의 프로필 이미지
roundvoyage2680
Questioner

계속 에러가 나요 ㅜㅜ. 프로젝트 생성도 문제없고 말씀해 주신 node_modules 폴더도 존재 합니다. 에러 메세지는 아래와 같은데요...뭘 더 설치해야 하나요? 

-------------------------------------------------

Successfully created project pro02.

�👉  Get started with the following commands:

 $ cd pro02

 $ yarn serve

C:\ade\try-1>cd pro02

C:\ade\try-1\pro02>yarn serve

yarn run v1.19.1

$ vue-cli-service serve

internal/modules/cjs/loader.js:797

    throw err;

    ^

Error: Cannot find module './_baseValues'

Require stack:

- C:\ade\try-1\pro02\node_modules\lodash\values.js

- C:\ade\try-1\pro02\node_modules\webpack-merge\lib\index.js

- C:\ade\try-1\pro02\node_modules\@vue\cli-service\lib\Service.js

- C:\ade\try-1\pro02\node_modules\@vue\cli-service\bin\vue-cli-service.js

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)

    at Function.Module._load (internal/modules/cjs/loader.js:687:27)

    at Module.require (internal/modules/cjs/loader.js:849:19)

    at require (internal/modules/cjs/helpers.js:74:18)

    at Object.<anonymous> (C:\ade\try-1\pro02\node_modules\lodash\values.js:1:18)

    at Module._compile (internal/modules/cjs/loader.js:956:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)

    at Module.load (internal/modules/cjs/loader.js:812:32)

    'C:\\ade\\try-1\\pro02\\node_modules\\@vue\\cli-service\\bin\\vue-cli-service.js'

  ]

}

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

0

captain님의 프로필 이미지
captain
Instructor

안녕하세요 MaryGold님, 에러 메세지로 봐서는 node_modules 폴더가 없는 것 같은데 vue create로 생성할 때 뭔가 문제가 있었던 게 아닐까 싶습니다. 폴더를 다시 다 삭제하고 `vue create 프로젝트 이름` 했을 때 어떤 오류가 나는지 한번 확인해보시는게 좋을 것 같아요!

roundvoyage2680's profile image
roundvoyage2680

asked

Ask a question