i can not install nodebb



  • root@ubuntu:/opt/nodebb/nodebb# apt-get install git nodejs redis-server npm build-essential imagemagick
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    git is already the newest version.
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     nodejs : Conflicts: npm
    E: Unable to correct problems, you have held broken packages
    


  • As I understand it, installing nodejs pulls in npm, so there's no need to install npm separately.

    Your command should read apt-get install nodejs redis-server build-essential imagemagick. The system said you have git installed already, so no need to have it in the command.


  • GNU/Linux Admin

    Ah yes, funny that. Perhaps we started NodeBB before npm made it into core? Let me remove it from the readme now.



  • 嗨哥们我相信你能看懂。。最近我开始学习nodejs研究nodebb
    and..i cannot install nodebb as well
    error: cannot find module nconf


  • Admin

    @sunqi did you run npm install? and if so did you run into any errors



  • @psychobunny oh thanks..i run npm install already and run node app,
    info: This looks like a new installation, so you'll have to answer a few q
    ns about your environment before we can proceed.

    info: Press enter to accept the default setting (shown in brackets).
    URL of this installation (http://localhost) http://sunqi
    Port number of your NodeBB (4567)
    Use a port number to access NodeBB? (y)
    IP or Hostname to bind to (0.0.0.0)
    Which database to use (redis)
    Host IP or address of your Redis instance (127.0.0.1)
    Host port of your Redis instance (6379)
    Password of your Redis database 12345678
    Which database to use (0..n) (0)
    info: Configuration Saved OK
    info: Populating database with default configs, if not already set...
    error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    warn: NodeBB Setup Aborted.
    

    hope u can help me ,i'm a green hand


  • GNU/Linux Admin

    @sunqi Looks like your redis instance is not running.

    Can you access it when you run redis-cli from the command line?



  • seems that i should read the README first....and the new problem is that how can i run the command:

    # apt-get install git nodejs redis-server build-essential imagemagick

  • Community Rep

    Just copy and paste that into your terminal 🙂 that is if you're running on a unix or unix-like system (Ubuntu, mint, centos etc.) if on a Mac, you have to install those packages with brew.



  • @BDHarrington7 thx
    but i use windows..in fact i'm a pc user instead of developer= =!


  • GNU/Linux Admin

    In that case, install GitHub for windows, Node.js (from website), Redis (from website), and that should be enough... I think...


Log in to reply
 

Suggested Topics

  • 1
  • 3
  • 8
  • 2
  • 3
| |