• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

[FIXED] Cannot install NodeBB on Windows Server 2008 or Windows Server 2012

Scheduled Pinned Locked Moved Technical Support
windowsnodebbwindows server 2008windows server 2012
15 Posts 3 Posters 6.9k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jinxJ Offline
    jinxJ Offline
    jinx
    wrote on last edited by jinx
    #1

    EDIT: I'm just going to rewrite this now, because my troubleshooting has looped around on itself.

    I'm trying to install NodeBB into a VM that I have running Windows Server 2012. It has to be running WS2012 because that is the environment that it will eventually need to run in if I am going to use it in production.

    My problem is that when I do node app.js --setup I am missing lots of modules. I install the modules until it tells me I am missing the module './build/Release/magic'. To my understanding, using npm i mmmagic should install this module, but when I do, I get an error. Here are the images showing the errors.
    node1.png
    node2.png

    I'd appreciate it if someone could help me out. Really want to get NodeBB up and running so I can start working with it and see if it is something I want to stick with.

    julianJ 1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    replied to jinx on last edited by
    #2

    @joelski What version of visual studio do you have installed?

    1 Reply Last reply
    0
  • jinxJ Offline
    jinxJ Offline
    jinx
    wrote on last edited by jinx
    #3

    @julian I did not know I needed to have it installed. I'll install it and update this post.

    1 Reply Last reply
    0
  • jareyJ Offline
    jareyJ Offline
    jarey Translator
    wrote on last edited by
    #4

    I thought i got it running with visual studio express 2012. If it doesnt work try 2013/2008. One of them did the trick for me, can't remember wich of them.

    Regards.

    jinxJ 1 Reply Last reply
    0
  • jinxJ Offline
    jinxJ Offline
    jinx
    replied to jarey on last edited by
    #5

    @jarey I'm installing Visual Studio Community 2015 on my VM at the moment. (Albeit very, very slowly as my internet is complete trash...) If it doesn't work then i'll just have to go about setting up node on our production server, so I don't have to wait on my slow internet.

    1 Reply Last reply
    0
  • jinxJ Offline
    jinxJ Offline
    jinx
    wrote on last edited by jinx
    #6

    @julian @jarey I did node app.js --setup, it told me I needed the module 'mmmagic'. I then did npm i mmmagic, then I got this;
    node-gyp.png

    UPDATE: Read the error and looked at my files. I had a /V140 directory, so I copy & pasted it and renamed it to /V110. Then I got this error (I copy-pasted it into a pastebin, it was too long to get a screenshot.) http://pastebin.com/exfcfBnX

    1 Reply Last reply
    0
  • jinxJ Offline
    jinxJ Offline
    jinx
    wrote on last edited by jinx
    #7

    @julian @jarey Thanks for your help. After a little piddling I found a solution. I'd really like to see this added to the docs, it would save a lot of people a lot of headaches...

    For a successful installation on Windows Server 2008;

    Install the following;
    https://windows.github.com/
    https://nodejs.org/dist/v0.10.35/ (The latest version will not work. It will give you a node-gyp error. This is the only version i've found that works.)
    https://github.com/MSOpenTech/redis/releases
    http://imagemagick.org/script/binary-releases.php#windows/
    https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi
    https://www.microsoft.com/en-us/download/details.aspx?id=44914 (There are several versions of this. I have linked the one that you need.)

    Restart your computer and continue installation as per the docs.

    EDIT: Everything got setup

    1 Reply Last reply
    1
  • jinxJ Offline
    jinxJ Offline
    jinx
    wrote on last edited by
    #8

    @julian @jarey New Issue:
    everything works well up until this point;
    redis_setup_error.png

    jareyJ 1 Reply Last reply
    0
  • jareyJ Offline
    jareyJ Offline
    jarey Translator
    replied to jinx on last edited by
    #9

    @jinx have you started the redis server? seems that the problem is that it is not running. Check that you have started the redis server because on windows it doesnt start automatically on startup in the default config.

    Regards.

    1 Reply Last reply
    0
  • jinxJ Offline
    jinxJ Offline
    jinx
    wrote on last edited by
    #10

    @jarey I started Redis, even tried restarting then starting it again. I tried using the supplied bat and from the exe directly.

    jareyJ 1 Reply Last reply
    0
  • jareyJ Offline
    jareyJ Offline
    jarey Translator
    replied to jinx on last edited by
    #11

    @jinx running C:\Program Files (x86)\Redis\StartRedisServer.cmd isthrowing any errors? Do you keep alive the cmd where you run it while executing node app.js --setup?

    1 Reply Last reply
    0
  • jinxJ Offline
    jinxJ Offline
    jinx
    wrote on last edited by
    #12

    @jarey Keeping the window open did the trick. Does it need to stay open all the time?

    jareyJ 1 Reply Last reply
    0
  • jareyJ Offline
    jareyJ Offline
    jarey Translator
    replied to jinx on last edited by
    #13

    @jinx the server needs to be running. I suppose that itcan be running in background but didnt tried in windows. In unix systems it runs in background when the machine boots by default.

    Glad it helped.

    1 Reply Last reply
    0
  • jinxJ Offline
    jinxJ Offline
    jinx
    wrote on last edited by jinx
    #14

    @jarey Cannot view the forum from localhost:4567 or 127.0.0.1:4567 EDIT: Fixed. The version of Redis linked in the docs is way too old.

    jareyJ 1 Reply Last reply
    1
  • jareyJ Offline
    jareyJ Offline
    jarey Translator
    replied to jinx on last edited by
    #15

    @jinx glad to hear you got it working :).

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development