var opts = this.getOpts(), headers;
^
TypeError: this.getOpts is not a function
at module.exports (F:\node\node_modules\osmosis\lib\commands\header.js:14:21)
at F:\node\node_modules\osmosis\lib\Command.js:468:22
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
You should use .config or .header after .get. Runtime commands are applied to previous context command, not to next one. It's not so obvious, but it works)
gives error