Pierre Mage

Results 2 comments of Pierre Mage

Which version of node are you using? `util.puts` has been deprecated since v0.11.3 and finally removed in v12.x Extract from [v11.x documentation](https://nodejs.org/docs/latest-v11.x/api/util.html#util_util_puts_strings): ### util.puts([...strings]) > Deprecated: Use `console.log()` instead.

The example [`basic_proxy.js`](https://github.com/http-party/node-http-proxy/blob/master/examples/http/basic-proxy.js#L41) uses `util.puts`. Couldn't find `util.puts` in [node-util](https://github.com/browserify/node-util/search?q=puts&unscoped_q=puts), the one installed by `npm i -s util`. So that wouldn't fix the error `TypeError: util.puts is not a function`....