storj-archived / storjshare-daemon

Deprecated. Docker Daemon + CLI for farming data on the Storj v2 network.
https://storj.io/share.html
GNU Affero General Public License v3.0
331 stars 74 forks source link

storjshare: command not found #324

Closed aristosv closed 6 years ago

aristosv commented 6 years ago

On Debian 9.3, as root, I run the following commands

apt install -y ca-certificates
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
exit
nvm install --lts
apt install -y git python build-essential
npm install --unsafe-perm storjshare-daemon

The installation seems to have completed successfully. I cannot run the commands below though.

root@storj:~ storjshare --version storjshare: command not found root@storj:~ node --version node: command not found

What could I be doing wrong?

littleskunk commented 6 years ago

Upload the installation output please.

littleskunk commented 6 years ago

Close your shell and open an new one. Now that you can call the nvm program, install Node.js (which comes with NPM): https://github.com/Storj/storjshare-daemon#gnulinux--mac-osx

Looks like you missed that step:

aristosv commented 6 years ago

Actually this is why I put the 'exit' command. I closed the terminal and opened a new one. Where is the installation output located?

aristosv commented 6 years ago

https://pastebin.com/n6i5j35i I copied it from the terminal

littleskunk commented 6 years ago

You are close.

npm remove storjshare-daemon
npm install -g storjshare-daemon

Note: You need unserf-perm to install storjshare as root. That is a security risk. It would be better to install it as normal user.

aristosv commented 6 years ago

it works now. but then I restart the computer, and when I run "storjshare-create" I get "storjshare-create: command not found" again.

That's weird. Why is it working only after the installation, and stops finding the command after I reboot?

aristosv commented 6 years ago

the files are all there, but for some reason its not working https://pastebin.com/WpeBBDTm

AlexeyALeonov commented 6 years ago

Don't use the root. Never use the root. You should install the node.js and modules with casual user. Please, remove your npm, node.js and install all with casual user without root or sudo: https://docs.storj.io/docs/storj-share-daemon-cli#section-2-1-1-installation-of-the-required-components

If you will follow this guide it will work.

aristosv commented 6 years ago

ok, its working now, thanks