51.webpack Vue-cli Creating a project

Source: Internet
Author: User

In the last two posts, node. js, Webpack, vue-cli are installed, and the installed version is:

Create a project today through this blog post.

1. Select a path

Start by entering the path to the project you want to create from the command line, for example:

Through the E: command to enter the disk, and then through the CD command to enter the folder.

2. Create a project

Through the command Vue Init webpack pm, where PM is the project name for you to create the project, after executing the command vue-cli will download the template and then set the project information:

  1. Set the project name
  2. ? Project name PMText
  3. Set Item description
  4. ? Project Description Intracompany
  5. Author
  6. ? Author Hys
  7. ? Vue Build (usearrow keys)
  8. ? Vue Build standalone
  9. Set up routes
  10. ? Install vue-router? Yes
  11. ? Use ESLint to lint your code? No
  12. Unit Test
  13. ? Set up unit tests Yes
  14. ? Pick a test runner jest
  15. ? Setup e2e tests with Nightwatch? Yes
  16. ? Should we run ' npm install ' for your after the project have been created? (Recom
  17. ? Should we run ' npm install ' for your after the project have been created? (Recom
  18. ? Should we run ' npm install ' for your after the project have been created? (Recom
  19. ? Should we run ' npm install ' for your after the project have been created? (Recom
  20. mended) No ( should be selected here)
  21. VUE-CLI Generated "PMText".
  22. # Project Initialization finished!
  23. # ========================
  24. to get started:
  25. Prompt for next action
  26. Go to PMText folder
  27. CD PMText
  28. Initialize Project
  29. NPM Install (or if using Yarn:yarn)
  30. Run the project
  31. NPM Run Dev

After executing the above content, all the contents of the project are completed, and the project is opened by the link.

Bug

If you are executing:

Vue Init webpack pm is stuck , stating that there is a problem with the version of node. JS, try another stable version, that resolves the issue.

Error:

  1. 39365 Error code Elifecycle
  2. 39366 Error errno 1
  3. 39367 error [email protected] install: ' node install.js '
  4. 39367 Error Exit status 1
  5. 39368 Error Failed at the [email protected]2.38. 3 install script.
  6. 39368 error probably not a problem with NPM. There is likely additional logging output above.

Resolve Links

install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver





51.webpack Vue-cli Creating a project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.