# IPFS http client not working out of the box

**URL:** <https://discuss.ipfs.tech/t/ipfs-http-client-not-working-out-of-the-box/9352>\
**Category:** Help\
**Tags:** js-ipfs\
**Created:** [November 2, 2020, 1:01am UTC](https://discuss.ipfs.tech/t/ipfs-http-client-not-working-out-of-the-box/9352 "2020-11-02T01:01:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![make-hci](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@make-hci](https://discuss.ipfs.tech/u/make-hci)\
**Post date:** [November 2, 2020, 1:01am UTC](https://discuss.ipfs.tech/t/ipfs-http-client-not-working-out-of-the-box/9352/1 "2020-11-02T01:01:32Z")

</div>

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:

> <https://github.com/ipfs/js-ipfs/blob/master/examples/browser-http-client-upload-file/src/App.js>

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!

---

<div class="post-metadata">

**Author:** ![achingbrain](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/achingbrain/32/3083_2.png) [@achingbrain](https://discuss.ipfs.tech/u/achingbrain)\
**Post date:** [November 2, 2020, 11:59am UTC](https://discuss.ipfs.tech/t/ipfs-http-client-not-working-out-of-the-box/9352/2 "2020-11-02T11:59:42Z")

</div>

Node 10 isn’t supported any more - please use either the Current or LTS release - v15 or v14 at the time or writing.

---

<div class="post-metadata">

**Author:** ![make-hci](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@make-hci](https://discuss.ipfs.tech/u/make-hci)\
**Post date:** [November 2, 2020, 10:13pm UTC](https://discuss.ipfs.tech/t/ipfs-http-client-not-working-out-of-the-box/9352/3 "2020-11-02T22:13:30Z")

</div>

Ah perfect, thank you so much for clarifying that!

---

<div class="post-metadata">

**Author:** ![make-hci](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@make-hci](https://discuss.ipfs.tech/u/make-hci)\
**Post date:** [November 2, 2020, 10:44pm UTC](https://discuss.ipfs.tech/t/ipfs-http-client-not-working-out-of-the-box/9352/4 "2020-11-02T22:44:02Z")

</div>

Unfortunately, even after upgrading to 14.15.0, and then 15.0.1 right after, the issue seems to persist

---

<div class="post-metadata">

**Author:** ![achingbrain](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/achingbrain/32/3083_2.png) [@achingbrain](https://discuss.ipfs.tech/u/achingbrain)\
**Post date:** [November 3, 2020, 11:07am UTC](https://discuss.ipfs.tech/t/ipfs-http-client-not-working-out-of-the-box/9352/5 "2020-11-03T11:07:29Z")

</div>

Can you please paste the full output from the command? There may be something else wrong here.
