LoginSignup
3
1

More than 3 years have passed since last update.

gulp4のインストール手順

Last updated at Posted at 2019-07-15

gulp4のインストール方法を自分なりにまとめる。
以前gulp使ってたけど、しばらく触ってなかった間に(gulp3→4で)色々と変わったみたい。

npm初期化

npm init 

npmインストール

npm install gulp -D

ローカルへのインストールで良い。

インストールされたか確認

npx gulp -v

npxつければ良い。
(npmのバージョンが5.2.0以上であること)

インストールに失敗したモジュールがあればインストール

npm install npm-install-missing --save-dev

gulp実行テスト

gulpfile.js作成

var gulp = require('gulp');

gulp.task('default', function(done){
  console.log('gulp installed!!');

  return done();
});

実行できるか確認

npx gulp

参考リンク

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1