Install Yeoman on Windows

Source: Internet
Author: User
Tags install node

Before directly installing node. js, run npm install-g yo command, the result of what "to install framework2.0 sdk,vcbuild" What the error, how also bad, the result is a variety of premise environment is not set up good->->

1. Install Ruby

: http://rubyinstaller.org/downloads/

Note Select the 64-bit or 32-bit version

Note Check the installation interface three checkboxes

Open command line after installation, enter: Ruby--version

If the version number is successfully output, the installation succeeds

2. Install compass, Sass

After you install Ruby, in the Start menu, locate the ruby that we just installed, open Start command Prompt with Ruby, and then enter it directly on the command line: Gem install Compass

Post-Installation input: Compass--version

If the version number is successfully output, the installation succeeds

Gem Install Sass

Sass--version

(Compass must be installed, sass Some tutorials not installed, I was installed->->)

3. Install Python

: https://www.python.org/downloads/windows/

Note Select 64-bit or 32-bit

Here I download is 2.7.9 version of, seems to have seen on the internet a post saying that with the 3.X version of the problem

Open command line input after installation: Python--version

The output version number is successfully installed

4. Install node. js

: https://nodejs.org/download/

Note Select 64-bit or 32-bit

Here I am under the. msi file, which can help you configure the environment variables, can be directly on the command line with the node command

Open command line input after installation: node--version and NPM--version

The output version number is successfully installed

(NPM is node's package manager)

5. Installing Yeoman

Open command Line input: npm install-g yo

Open command line input after installation: Yo--version, Bower--version and Grunt--version

The output version number is successfully installed

Note here that Bower and grunt are installed when Yo is installed, and the key point is whether the grunt is installed

First I installed after the run: Grunt--version only grunt-cli v0.1.13 output version number, and then Yeoman is not good to make;

Then I installed grunt alone, run: NPM install-g Grunt, after the installation of the print version number still only GRUNT-CLI output version number;

Final use of local installation: NPM install grunt, only the full output results, for the moment unclear

Attention must appear the result to calculate the installation success!!!

6. Install the angular generator

Running the yo command will prompt you to install the generator, I am installing the angular generator: NPM install-g generator-angular (because to learn Angularjs)

7. Testing

Create folder such as test, go to folder: mkdir test, CD test

Input command: yo angular

Then you will be asked if you use sass? Bootstrap? Select those angular components

I enter: N, y, and enter

The last is a long wait ...

Then the file size has almost 250M ...

In the test directory, enter the command: Grunt serve

Automatically opens the page in the default browser:

Indicates a successful configuration

Install Yeoman on Windows

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.