Here check this topic:
https://community.nodebb.org/topic/7142/latest-pull-breaks-nodebb-packages-are-out-of-date/
To fix the issues try to run the following commands:
npm i
[email protected]
npm i install
[email protected]
And then run ./nodebb setup and just press enter. It is indeed just a workaround, but better than nothing.