"Npm gulp 전역 설치"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 3명의 중간 판 7개는 보이지 않습니다)
6번째 줄: 6번째 줄:


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# gulp
root@zetawiki:~# gulp
No command 'gulp' found, did you mean:
No command 'gulp' found, did you mean:
  Command 'gslp' from package 'ghostscript' (main)
  Command 'gslp' from package 'ghostscript' (main)
gulp: command not found
gulp: command not found
</source>
</syntaxhighlight>


==설치==
==설치==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# npm install --global gulp
root@zetawiki:~# npm install --global gulp
gulp@3.9.1 /usr/lib/node_modules/gulp
gulp@3.9.1 /usr/lib/node_modules/gulp
30번째 줄: 30번째 줄:
├── 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)
├── 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)
└── 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)
</source>
</syntaxhighlight>


==확인 2==
==확인 2==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# gulp -v
root@zetawiki:~# gulp -v
[18:41:14] CLI version 3.9.1
[18:41:14] CLI version 3.9.1
39번째 줄: 39번째 줄:
root@zetawiki:~# gulp
root@zetawiki:~# gulp
[18:46:13] No gulpfile found
[18:46:13] No gulpfile found
</source>
</syntaxhighlight>
 
==테스트==
<syntaxhighlight lang='console'>
root@zetawiki:~# vi gulpfile.js
</syntaxhighlight>
<syntaxhighlight lang='javascript'>
var gulp = require('gulp');
gulp.task('default', function() {
  console.log("Hello World!");
});
</syntaxhighlight>
:→ gulp 명령어 사용시 기본(default) 작업으로 'Hello World!' 출력
<syntaxhighlight lang='console'>
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
</syntaxhighlight>
 
==참고==
*https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md


==같이 보기==
==같이 보기==
* [[gulp]]
* [[gulp]]
* [[npm gulper 전역 설치]]
* [[npm install --global]]
* [[npm install --global]]
* [[Laravel 엘릭서]]
* [[Laravel 엘릭서]]


[[분류: npm]]
[[분류: npm install -g]]

2020년 11월 2일 (월) 02:54 기준 최신판

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 }}