LoginSignup
0
0

More than 5 years have passed since last update.

【メモ】gulp-rsyncで#<SyncWriteStream> has no method 'cursorTo'

Posted at
  gulp.src('/var/apps/statics/font/**')
  .pipe(rsync({
    root: '/var/apps/statics/font/',
    hostname: 'hoge-static01',
    destination: '/var/apps/statics/font/',
    progress: true,
    recursive: true ,
    compress: true,
    clean: true,
    exclude: [
      '.git',
      '.gitignore',
      'node_modules'
    ]})
  ).on('error',function(msg){console.log(msg)});

watchからこんな感じで実行したら以下のようなエラーでこけた


/etc/gulp/node_modules/gulp-rsync/log.js:8
  process.stdout.cursorTo(0);
                 ^
TypeError: Object #<SyncWriteStream> has no method 'cursorTo'
    at Console.log (/etc/gulp/node_modules/gulp-rsync/log.js:8:18)
    at module.exports (/etc/gulp/node_modules/gulp-rsync/node_modules/gulp-util/lib/log.js:8:15)
    at module.exports (/etc/gulp/node_modules/gulp-rsync/log.js:15:26)
    at /etc/gulp/node_modules/gulp-rsync/index.js:112:13
    at Array.forEach (native)
    at /etc/gulp/node_modules/gulp-rsync/index.js:111:29
    at Array.forEach (native)
    at Socket.handler (/etc/gulp/node_modules/gulp-rsync/index.js:110:37)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)

issue発見

_人人人人人人人人人人人人人人人人人_
>   Seems project is abandoned  <
 ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄

silent: true
つけてとりあえずこけなくなったけど、なんだかなぁ

  gulp.src('/var/apps/statics/font/**')
  .pipe(rsync({
    root: '/var/apps/statics/font/',
    hostname: 'hoge-static01',
    destination: '/var/apps/statics/font/',
    progress: true,
    recursive: true ,
    compress: true,
    silent: true,
    clean: true,
    exclude: [
      '.git',
      '.gitignore',
      'node_modules'
    ]})
  ).on('error',function(msg){console.log(msg)});
0
0
2

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