Install Grunt on Mac, and install grunt on mac

Source: Internet
Author: User
Tags install brew

Install Grunt on Mac, and install grunt on mac

Step 1: Install brew

Go to http://bremongosh/ brewhome and install the command.

 

Step 2: Install node

After the installation is successful, enter brew install node in the command line.

 

Step 3: Install grunt

After the installation is complete, enter npm install-g grunt-cli in the command line.

 

Step 4: Install the grunt plug-in

Put the prepared Gruntfile. js and package. json in the directory of the project to be executed;

Enter cd + space, drag the project folder into the command line, and enter to execute;

Enter npm install in the command line and wait until the installation is complete.

 

The above four steps are completed.

 

If sass is used in grunt, you also need to install sass

Mac comes with ruby, So enter sudo gem install-n/usr/loca/bin sass directly in the command line

After the installation is successful, grunt's sass plug-in can run normally

 

For gruntfile. js and package. json files, click the following blog:

Http://www.cnblogs.com/wangfupeng1988/p/4561993.html

Related Article

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.