앞에 설명에서
$ grunt first
처럼 수행하여야 한다고 했다. 이때 grunt
가 바로 Grunt 빌드 툴의 명령어이다.
이 grunt
명령은 다음과 같이 설치한다.
$ npm install -g grunt-cli
-g
옵션은 Grunt의 실행 명령인 grunt
를 수행 디렉토리 위치와 상관없이 아무 곳이나 사용하기 위한 것이다.
설치가 끝나면 grunt --help
란 명령을 수행해서 제대로 설치 되었나 확인하면 된다.
$ grunt --help
grunt-cli: The grunt command line interface. (v0.1.13)
If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:
http://gruntjs.com/getting-started