0👍
✅
From the module sources, indexOf
on line 7 of the request.js file is used on the variable storing the protocol, which is undefined
in your case.
And from your code, I think I can safely assume that your environment variable process.env.IPFSPROTCOL
is undefined.
TL:DR : I think you wanted to write IPFSPROTOCOL
instead of IPFSPROTCOL
Source:stackexchange.com