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.