m19c / gulp-run

Pipe to shell commands in gulp
ISC License
151 stars 25 forks source link

Error: No path specified! Can not get relative. #19

Closed reggi closed 9 years ago

reggi commented 9 years ago

This isn't working :/

gulp.task('hello-world', function () {
  run('echo Hello World').exec()  // prints "Hello World\n".
    .pipe(gulp.dest('output'))    // Writes "Hello World\n" to output/echo.
})

error:

Error: No path specified! Can not get relative.
    at File.Object.defineProperty.get (/Users/thomas/Desktop/play-atomshell/node_modules/gulp-run/node_modules/vinyl/index.js:123:27)
    at DestroyableTransform.saveFile [as _transform] (/Users/thomas/Desktop/play-atomshell/node_modules/gulp/node_modules/vinyl-fs/lib/dest/index.js:37:48)
    at DestroyableTransform.Transform._read (/Users/thomas/Desktop/play-atomshell/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/Users/thomas/Desktop/play-atomshell/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/Users/thomas/Desktop/play-atomshell/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (/Users/thomas/Desktop/play-atomshell/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at DestroyableTransform.Writable.write (/Users/thomas/Desktop/play-atomshell/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
    at write (_stream_readable.js:601:24)
    at flow (_stream_readable.js:610:7)
    at _stream_readable.js:578:7
ghost commented 9 years ago

I think this is the same as issue 18.

It would be really nice to see a fix.

cbarrick commented 9 years ago

Thanks for reporting. I'm closing this as a duplicate of #18.