Js-ipfs issues and npm

Hello.
I would like to ask you for an assistance, because seems that we have some fundamental issues with “js-ipfs api” and issues seems to be not in our code.

  1. First issue

npm install ipfs -g

We tried to install js-ipfs on Ubuntu, Debian, Centos (latest on Digitalocean) through npm (also the latest, latest node…).

But we got:

npm ERR! code ELIFECYCLE

npm ERR! errno 2

npm ERR! iso-constants@0.1.2 install: node build.js > index.browser.js

npm ERR! Exit status 2

npm ERR!

npm ERR! Failed at the iso-constants@0.1.2 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

and “command jsipfs not working (command not found).”

So my first question is: “does this module need any other dependencies”, or what can be wrong? We tested latest Ubuntu, Debian, Centos, latest npm/node.

“We were not able to make it work on any system.”

  1. Second issue (ipfs-http-client)

According to this: ipfs-http-client - npm

we installed module ipfs-http-client

Module was installed and is located in the /node_modules.

but we are unable to load this module into the project /app.js by “require(‘ipfs-http-client’).”

“Module can not be found.” Of course, the module is located in the /node_modules and of course all other modules works fine. Just this one does not…:frowning:
We tried to set abs path: require(’/path to dir/node_modules/ipfs-http-client’)…but also does not work :frowning:

Do you have any idea what can be wrong?

:slight_smile:

Thanks.

Adam.