sudo apt-get install build-essential will fix it.
Thanks you so much!
I still don't know what caused everything to turn bad.
I maintain a git repo for our forum that contains our NodeBB install along with ops scripts, package.json with our required plugins, readme files, etc.
The issue i have is when we go to upgrade its a very manual process of removing the old files, downloading the new files, only pasting over the ones we need and merging the package.json.
I'm sure i'm not the only one doing this and am interested if anyone has come up with a decent solution? or script to automate it a bit more? that i could base my own off.
./nodebb upgrade
?That could help.
@jiangcaiyang +1 on that
Other system task may be fixed with simple bash scripts. The terminal is your friend
@jiangcaiyang ./nodebb upgrade
updated the dependencies, but that is not my issue the issue is updating the core files and merging my package.json with nodebbs.
@louisemcmahon something like this can work okay:
Have two git remotes: origin
and fork
git remote rm origin
git remote add origin https://github.com/nodebb/nodebb.git
git remote add fork https://example.com/your/repo.git
Then you can used these named remotes for updating / pushing like so:
# pull and merge latest changes from NodeBB
git pull origin
# push latest changes to your repo
git push fork
That will make updating things easier.