1

Windows 10

node v8.9.2

npm 5.5.1

installed vue-cli through the use of npm but entering 'npm run dev' resulted in an error.

this is error message

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hansol\AppData\Roaming\npm-cache\_logs\2017-12-08T04_14_50_859Z-debug.log
1
  • can you share what command you have fired so far , for installing vue-cli, then vue init and then cd your dir then other commands for better understanding Commented Dec 8, 2017 at 8:47

2 Answers 2

1

It appears as though you havent installed the node modules / dependencies.

Please try and run a

npm install

And see if that works

Sign up to request clarification or add additional context in comments.

Comments

1

I used to face this problem when the port is busy. So confirm the port you are opening for the dev server. you can also change the port using a flag "--port 3000".

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.