Install nvm or n and then use one of those to install Node 6.
Getting errors doing npm install --production
I am trying to run nodebb on an ubuntu VPS using following this guide: https://docs.nodebb.org/en/latest/installing/os/ubuntu.html
However, once I get to the step where I have to do "npm install --production", I get the following error; http://pastie.org/private/0ozja04ct3c3hwok7dr8tw.
Any help would be much appreciated.
Try this :
apt-get remove --purge nodejs npm
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
apt-get install nodejs
@djcyry it is not recommended to use NodeJS 5, in a productive enviroment.
Anybody have any other input? Can't use nodejs 5.
@Lettuce actually there was someone with the same issue just yesterday. Try the master branch maybe.
@Lettuce try the solution in this topic https://community.nodebb.org/topic/7302/fatal-error-nan-h-no-such-file-or-directory
Thank you both many for your help. I read that and tried to switch to the master branch, however, I am not sure how to.
Peter-Zoltan Keresztes last edited by Peter-Zoltan Keresztes
@Lettuce cd to your nodebb path then type git checkout master then run git pull,
then you can go on with the standard installation procedure.
@Lettuce run this
sudo apt-get install libkrb5-dev