MineOS Node dependencies not installing

So I am trying to install MineOS on Ubuntu. I have followed the install instructions on the wiki, but it gets to the " Build Node Dependencies" section an bunch of errors and warnings are thrown.

These are the errors and warning that come up. If someone could point me in the direction of a solution that would be much appreciated.

gyp WARN EACCES current user (“user1”) does not have permission to access the dev dir “/root/.cache/node-gyp/14.20.0”
gyp WARN EACCES attempting to reinstall using temporary dev dir “/usr/games/minecraft/node_modules/diskusage/.node-gyp”
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/usr/games/minecraft/node_modules/diskusage/.node-gyp’
gyp ERR! System Linux 5.15.0-46-generic
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/games/minecraft/node_modules/diskusage
gyp ERR! node -v v14.20.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! diskusage@1.1.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the diskusage@1.1.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-09-11T06_40_24_381Z-debug.log

If needed I have a full copy of the terminal session as well.

You need to run it as root

1 Like

RootSudo - Community Help Wiki or just login as root while you install mineos