Install the Yeoman scaffold tool step by step.

Source: Internet
Author: User

Install the Yeoman scaffold tool step by step.

Yeoman consists of three parts: yo (scaffolding tool), grunt (build tool), and bower (Package Manager ).

Prerequisites: Install NodeJs and Git Bash tools.
Configure the package. json file before installing yeoman.

Step 1: Install the yeoman command

Npm install-g yo

If no error is reported, go to step 2: npm ERR! Registry error parsing jsons

You can try the cnpm loading address: Npm config set registry http: // Registry.cnpmjs.org


After installation is complete
Step 2: Install a generator webapp
Npm install yeoman/generator-webapp



Step 3: Install mocha of a generator
Npm install yeoman/generator-mocha



Step 4: Install
Yo webapp



Press enter .........

Step 5: After installation is complete
Grunt serve



After the ratio is executed, the following page is displayed, indicating that the installation and running are successful.



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.