I’ve just installed the ipfs-http-client through NPM (using node v10.15), and out of the box following along with the code here:
I get the following error:
/node_modules/ipfs-http-client/src/pin/add-all.js: Unexpected token, expected “;” (27:18)
if (pin.Pins) { // non-streaming response
for (const cid of pin.Pins) {
yield new CID(cid)
^
}
continue
}
Bit confused as this seems to be correct JS syntax? Any pointers would be greatly appreciated!