Node.js-webstrom Create Vue project (VUE project initialization)

Source: Internet
Author: User

I made a mistake: as Vue white, I didn't know to create the original Vue project alone, so I built an empty project in Webstrom,

When a new JS file is added to it, the import of Vue from "Vue" begins. After the operation of the nature of the error: syntaxerror:unexpected identifier, by their own stupid cry ~

Below to get to the point, theVue project initialization steps are as follows:

1, by default you have installed node. js, Webstrom, NPM, Vue/vue-cil, Webpack.

2. Win+r→cmd Open the command line, the CD enters the path where you want to create the Vue project, and then executes the project creation command :

Vue Init Webpack [ProjectName]

Note here that the project name must be lowercase (because uppercase causes problems across platforms), and if there is an uppercase error:Sorry, name can no longer contain capital letters

3. Enter the project path in the command line and then execute the NPM install command to install the required dependencies for the project.

4. execute the npm run dev command after the installation is complete, running the project.

5. Open the Vue project you just created with Webstrom .

Node.js-webstrom Create Vue project (VUE project initialization)

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.