Npm gulp 전역 설치

(Gulp 설치에서 넘어옴)
npm gulp 전역 설치
npm install --global gulp

1 사전작업[ | ]

2 확인[ | ]

root@zetawiki:~# gulp
No command 'gulp' found, did you mean:
 Command 'gslp' from package 'ghostscript' (main)
gulp: command not found

3 설치[ | ]

root@zetawiki:~# npm install --global gulp
gulp@3.9.1 /usr/lib/node_modules/gulp
├── pretty-hrtime@1.0.3
├── interpret@1.0.1
├── deprecated@0.0.1
├── archy@1.0.0
├── minimist@1.2.0
├── semver@4.3.6
├── tildify@1.2.0 (os-homedir@1.0.2)
├── v8flags@2.0.11 (user-home@1.1.1)
├── chalk@1.1.3 (supports-color@2.0.0, escape-string-regexp@1.0.5, ansi-styles@2.2.1, has-ansi@2.0.0, strip-ansi@3.0.1)
├── orchestrator@0.3.8 (sequencify@0.0.7, stream-consume@0.1.0, end-of-stream@0.1.5)
├── gulp-util@3.0.7 (array-differ@1.0.0, lodash._reevaluate@3.0.0, lodash._reinterpolate@3.0.0, lodash._reescape@3.0.0, array-uniq@1.0.3, object-assign@3.0.0, beeper@1.1.0, replace-ext@0.0.1, fancy-log@1.2.0, has-gulplog@0.1.0, vinyl@0.5.3, gulplog@1.0.0, lodash.template@3.6.2, through2@2.0.1, multipipe@0.1.2, dateformat@1.0.12)
├── vinyl-fs@0.3.14 (strip-bom@1.0.0, defaults@1.0.3, vinyl@0.4.6, graceful-fs@3.0.11, mkdirp@0.5.1, through2@0.6.5, glob-stream@3.1.18, glob-watcher@0.0.6)
└── liftoff@2.3.0 (lodash.isstring@4.0.1, lodash.isplainobject@4.0.6, lodash.mapvalues@4.6.0, extend@3.0.0, rechoir@0.6.2, flagged-respawn@0.3.2, resolve@1.1.7, fined@1.0.2, findup-sync@0.4.3)

4 확인 2[ | ]

root@zetawiki:~# gulp -v
[18:41:14] CLI version 3.9.1
[18:41:14] Local version 3.9.1
root@zetawiki:~# gulp
[18:46:13] No gulpfile found

5 테스트[ | ]

root@zetawiki:~# vi gulpfile.js
var gulp = require('gulp');
gulp.task('default', function() {
  console.log("Hello World!");
});
→ gulp 명령어 사용시 기본(default) 작업으로 'Hello World!' 출력
root@zetawiki:~# gulp
[16:08:18] Using gulpfile ~/gulpfile.js
[16:08:18] Starting 'default'...
Hello World!
[16:08:18] Finished 'default' after 106 μs

6 참고[ | ]

7 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}