Updating MineOS

I tried updating mineOS using the following commands:

`cd /usr/games/minecraft
git fetch
git merge origin/master

npm install

But then when I `type in npm install and hit enter it gives me this:

npm ERR! install Couldn’t read dependencies
npm ERR! package.json ENOENT, open ‘/usr/games/minecraft/package.json’
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can’t find a package.json file in your current directory.

npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install”
npm ERR! cwd /usr/games/minecraft
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /usr/games/minecraft/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/games/minecraft/npm-debug.log
npm ERR! not ok code 0

Does anyone know how to fix this problem?

When I enter npm install, it gives me this error:

npm ERR! install Couldn’t read dependencies
npm ERR! package.json ENOENT, open ‘/usr/games/minecraft/package.json’
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can’t find a package.json file in your current directory.

npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install”
npm ERR! cwd /usr/games/minecraft
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /usr/games/minecraft/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/games/minecraft/npm-debug.log
npm ERR! not ok code 0

If it’s the webui version you’re talking about, then it’s cb43505. Otherwise could you mind telling me how to check?
Thanks in advance!

Nope not that.

There was a python version. a turnkey version that did not use Node and several Node versions.

Also what is your server?

Sorry if this is a dumb question, but how do I find it?

That would be the name of the original file you downloaded to install MineOS in the first place.

You can try to update/ re-install npm:

cd /usr/games/minecraft
git fetch
git pull
npm install

Above for Python, below for Node:

cd /usr/games/minecraft
git fetch
git reset --hard origin/master
npm install

I can’t seem to find the original file anywhere on the machine.

How long have you had the server? Recently? 2-3 years?

What server and also what OS matters in some cases.

Your log seems to me that you had no Node installed so I was thinking you had an old Python distro.

Claify, I meant what machine do you use to run your mincraft server.

I guess they are both called servers, lol.

I installed MineOS around last year’s summer. I think I will just uninstall MineOS and reinstall it altogether. Do you have any clue on how to do that?

cd /usr/games/minecraft
git fetch
git reset --hard origin/master
npm install

did you try this first?

Not really, unless I know exactly your machine.

Some you would burn the .iso file to cd and install it.

Mine uses a virtual cd so I just load the .iso file and boot to it.

I used a USB to install debian onto my machine and used this to install mineos:

mkdir -p /usr/games
cd /usr/games
git clone https://github.com/hexparrot/mineos-node.git minecraft
cd minecraft
git config core.filemode false
chmod +x service.js mineos_console.js generate-sslcert.sh webui.js
npm install
ln -s /usr/games/minecraft/mineos_console.js /usr/local/bin/mineos

cp mineos.conf /etc/mineos.conf

I see, well not to sure about that because my distro reformats my virtual hard drive when it installs.

BTW did you type this?

`cd /usr/games/minecraft

that command would not work anyway.

here is an idea i guess if you wanted to start over.

make back ups of your minecraft servers in the archive format and in the raw file format.

update your debian with the latest via usb, you may have wheezy with java 7 and now they have jessie with java 8.

then re-install mincraft with the commands you say above.

then you can import your old server wth the archive of world you backed up.

might work out for you.

Also depending on your hardware, it would be alot easier to manage your server if you looked into using virtual box or vmware.

i use vmware but there is a little learning curve.

@iMelsom is the virtual box expert.

you may need someone else to help with a command line only interface anyway.

And I use SFTP to manage the files. I just have to see what I’m doing, lol

Two things: One, you’re using too old a version of node. You’re using a pre-release alpha, and the first stable version, 4.x has been available for a long time. You should use a more modern version of nodejs.

Secondly, can you verify that /usr/games/minecraft/package.json actually exists? Check the contents of that directory with ls.

Better, copy/paste the command and the results for us.