Can't update web-ui

I am trying to setup MineOS again after removing the service and files in /usr/games/minecraft, and I keep getting this error thrown at me whenever I run the npm install command: npm WARN old lockfile - Pastebin.com
What can I do to fix this? I made sure NodeJS is updated, the version i’m using is 17.7.2.

Those are just warnings. The real error you’re running into is marked ERROR:

npm ERR! code 1 
npm ERR! path /usr/games/minecraft/node_modules/posix
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/usr/games/minecraft/node_modules/posix/build'
npm ERR!   CXX(target) Release/obj.target/posix/src/posix.o
npm ERR! make: Leaving directory
'/usr/games/minecraft/node_modules/posix/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@17.7.2 | linux | x64
npm ERR! gyp info find Python using Python version 3.8.10
found at "/usr/bin/python3"                                                                                                                                                        npm ERR! gyp info spawn /usr/bin/python3                                                                                                                                                                                                     npm ERR! gyp info spawn args [                                                                                                                                                                                                               npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',                                                                                                                                            npm ERR! gyp info spawn args   'binding.gyp',                                                                                                                                                                                                npm ERR! gyp info spawn args   '-f',                                                                                                                                                                                                         npm ERR! gyp info spawn args   'make',                                                                                                                                                                                                       npm ERR! gyp info spawn args   '-I',                                                     

Node 17 might be too recent and the issue you’re running into is posix, the npm module is failing to build on Node 17. Addressing this might be as simple as reverting to an older version of NodeJS until posix devs further updates their package.

Installed NodeJS 10, fixed the issue, thanks.