So, I have recently discovered that te WebUI I’m running is extremely old. To be precise, it says (in the top right corner) ‘Version: 24b30ef’. It runs just fine, but I’ve seen that it doesn’t have some of the interesting features that the newest version does. I tried updating following https://minecraft.codeemo.com/mineoswiki/index.php?title=Updating_the_Webui, only to find out that the command npm was not found. Fixed this by installing Node.js. When I tried running the command again I got another error.
I’m guessing the best way is to do a full distro upgrade. How would I accomplish this?
The following was copied from the Shell in a Box:
`npm ERR! install Couldn’t read dependencies
npm ERR! Linux 3.2.0-4-686-pae
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “install”
npm ERR! node v4.3.1
npm ERR! npm v2.14.12
npm ERR! path /usr/games/minecraft/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! syscall open
npm ERR! package.json ENOENT: no such file or directory, 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! Please include the following file with any support request:
npm ERR! /usr/games/minecraft/npm-debug.log`
I’m might be missing something here as well.
I’d like to update the Web-UI as I have the same version.
I built my server from the TurnKey ISO (wheezy 64-bit version) and ran through the first part of the solution:
cd /usr/games/minecraft
git fetch
git merge origin/master
npm install
I tried to search for steps on installing the node.js, but what I found seems to be how to add MineOS to an existing running system.
npm should most certainly be there on your system, but my guess is you might have caught the ISO that used the node version manager (nvm) that lasted about 5 days before I decided to replace it with a different approach installing node.
Using the path returned by the find / -name "npm" command, type in that path, plus “install”. So if it returned that npm was found at /usr/local/bin/npm, you’d type in: /usr/local/bin/npm install
If updating the scripts returns an error or otherwise fails to solve a web-ui problem, you can try resetting the scripts. This will discard any and all local changes to the source and ensure permissions are set properly.
No offense taken, I was running in a similar issue… but got stuck at the install nodejs.
Thanks for the OP Kno56, I’ll continue to watch as I may run into other issues you get…