Ghost 0.3.3

Dec 11, 2013 at 1:33 AM
I was trying to follow the Scott Hanselman article to run Ghost 0.3.3 in VS2013. However, I ran into a couple issues:
  • first, I installed all of the node packages by opening a command prompt and running: npm install --production
  • if I then run "npm start" ghost starts up and I can navigate to http://127.0.0.1:2368 with no issue.
  • however, if I try to run it inside VS 2013, it errors out trying to load module iconv
  • I installed python 2.7.6 and attempted to install is by running "npm install iconv", but then got a compile error:
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". 
To fix this, 1) install the .NET Framework 2.0 SDK, 
2) install Microsoft Visual Studio 2005 or 
3) add the location of the component to the system path if it is installed elsewhere. 
[C:\ghost-0.3.3\node_modules\iconv\build \binding.sln]
That's where I stopped. Anyone else get any further?
Thanks
Dec 11, 2013 at 8:34 AM
This is a common problem with NPM packages on windows, the package build application node-gyp needs to be updated as well as command line switches to use the VC binaries for compilation from VS2012 (you may even need to install VS2012 express - I did).

https://github.com/voodootikigod/node-serialport - check out the windows install section.
https://github.com/voodootikigod/node-serialport/issues/248
Check out a few of the threads here: https://github.com/TooTallNate/node-gyp/issues?state=open

Took me a couple of hours to get a node package compiled and working on windows with a bit of trial and error.
Dec 12, 2013 at 12:12 AM
What I don't understand is why it can run from the command-line without iconv, but not from inside VS 2013? I'm new to nodejs, but it's just javascript, right?