When I try do a fresh install I get the following error when I run sudo npm install
:
gyp WARN EACCES user “root” does not have permission to access the dev dir “/usr/games/minecraft/node_modules/posix/.node-gyp/8.8.1”
For some reason that file was being given the wrong owner and group and I have no idea why, but after correcting it I was able to run sudo npm install
without issue.
However, even after doing this and removing mineos from systemctl completely and then re-adding and restarting it the webui still only works for 2 seconds before freezing. I still get this error when I run mineos
from the console:
path.js:28
throw new TypeError('Path must be a string. Received ’ + inspect(path));
^TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.join (path.js:1251:7)
at new mineos.mc (/usr/games/minecraft/mineos.js:132:15)
at Object. (/usr/games/minecraft/mineos_console.js:119:16)
at Module._compile (module.js:612:30)
at Object.Module._extensions…js (module.js:623:10)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Function.Module.runMain (module.js:653:10)
However interestingly I can run arguments on the mineos command such as mineos -h with no issue, and of the arguments list the help output page only -s and -h dont throw the error above.