Problem z instalacją skryptu na vps

mrk | 2018-12-19 23:50:02 UTC | #1

Cześć, chcę zainstalować skrypt na boostowanie godzin w grach (na platformie steam)

Oto wszystkie komendy

apt-get update
apt-get upgrade -y
apt-get install curl
apt-get install screen
apt-get install nano
apt-get install sudo
sudo apt-get install -y nodejs
npm install -g coffee-script pm2
git clone https://github.com/frk1/steamhourboostv2
cd steamhourboostv2
npm install .
coffee user.coffee

I mam taki problem, gdy dochodzę do komendy
npm install -g coffee-script pm2

niestety :frowning:

root@ubuntu:/home/user# npm install -g coffee-script pm2
bash: npm: command not found

Ktoś coś, co może być powodem ??
Skrypt jest na Linux/Debian, no ale
Ubuntu bazuje na Debian i nie ma potrzeby reinstalowania na Debian 7 .... ??


Nieznajomy11 | 2018-02-10 01:05:47 UTC | #2

apt install npm

mrk | 2018-02-10 15:20:22 UTC | #3

Znów mam problem przy instalowaniu tego:
git clone https://github.com/frk1/steamhourboostv21
cd steamhourboostv2
npm install .

Lecą errory

npm ERR! TypeError: Cannot read property ‘latest’ of undefined
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com

npm ERR! System Linux 3.13.0-141-generic
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “.”
npm ERR! cwd /home/user/CSGOMRK/steamhourboostv2
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type nonobjectproperty_load

npm ERR! System Linux 3.13.0-141-generic
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “.”
npm ERR! cwd /home/user/CSGOMRK/steamhourboostv2
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type nonobjectproperty_load

npm ERR! TypeError: Cannot read property ‘latest’ of undefined
npm ERR! at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR! at /usr/share/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR! at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com

npm ERR! System Linux 3.13.0-141-generic
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “.”
npm ERR! cwd /home/user/CSGOMRK/steamhourboostv2
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type nonobjectproperty_load

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/user/CSGOMRK/steamhourboostv2/npm-debug.log
npm ERR! not ok code 0

I pytanie brzmi czy to przez Ubuntu ?
Czy muszę mieć Debiana ?


kubus | 2018-02-11 13:17:35 UTC | #4

Nie, to nie przez ubuntu. Sam mam to postawione na ubuntu, tylko, że korzystałem z poradnika na githubie.
Użyj tego: (użyłem tego: https://github.com/frk1/steamhourboostv2)

apt-get update -yq && \
apt-get install -yq git make curl && \
curl -L https://git.io/n-install | N_PREFIX=~/.n bash -s – -y latest && \
source /root/.bashrc && \
npm install -g pm2 yarn && \
cd ~ && \
git clone https://github.com/frk1/steamhourboostv2.git && \
cd steamhourboostv2 && \
yarn install –production && \
clear && \
echo “Done. Run ‘npm run user’ to add users!”

Potem dodaj użytkownika steam, za pomocą komendy:

npm run user

Następnie po prostu włącz bota w screenie najlepiej:

screen -S botsteam npm run app

Działa, polecam.


mrk | 2018-02-10 15:42:06 UTC | #5

Dzięki działa, a co jeśli chcę połączyć sobie konto które mam połączone z steam guardem na telefonie

bo mam coś takiego Two-factor shared secret

No i jak dodać więcej gier bo nie mam żadnych nowych folderów na ftp :frowning:


kubus | 2018-02-11 13:17:35 UTC | #6

Właśnie.. Najłatwiejszym sposobem jest usunięcie steam guarda z telefonu i wtedy tylko będziesz musiał podać kod z emaila na którym masz steama.
A z tymi grami to nie wiem, ja tylko do cs:go i 1.6

PS.
https://forum.lvlup.pro/t/akcja-rozwiazywanie-problemow-jak-oznaczyc-tematy-jako-rozwiazane/1074