Closed ducin closed 8 years ago
@ducin I was able to get past this using VS 2015. I did, however, have to start a new C++ project so that the appropriate tools were installed.
You can see more about this in node-gyp
here: https://github.com/nodejs/node-gyp/issues/694
@jaykwon thx for your input. The problem is, however, that I don't have VS and I'm not going to have it. In fact, it's the corporate institution I'm working for - they won't decide to buy MSVS only to get aglio up and running.
As far as I understand, aglio requires some API-blueprint component that needs to be compiled. Maybe there's an alternative compiler for windows that is not VS-dependent? Or maybe it could be just .exe or .msi instaled somehow?
@ducin really sorry to hear you are having issues. Please have a look at the new experimental pure Javascript version of Drafter:
https://github.com/apiaryio/drafter#drafterjs
That could be used instead of Protagonist in Aglio to parse the blueprints, which in turn means no more C++ to compile. In the future I hope to provide it as a fallback for those environments where compiling is difficult or impossible, but today you'll have to try and use it manually.
I'm also having the same problem with Windows installation. Could you provide step by step instructions how we can replace Protagonist with Drafter. Many Thanks!
@swamikevala I'm working on integrating it into Aglio over the next few weeks, so hopefully this should become a non-issue shortly.
It turns out this is a bit more complicated than I originally envisioned. The newer Drafter and Drafter.js generate their own JSON schemas that don't support all the features that the internal generator in Aglio does, and there is no way to tell when a schema is user-supplied or generated by Drafter unless I use source maps and Refract output. That requires changing all of Aglio over to the new Refract interface, which I started to do but will take a pretty significant effort. So my choices are to continue on that front, or lose some support for JSON example and schema generation from MSON input. Both are not ideal unfortunately...
I have same issue on OSX 10.11, npm 3.5.2, node 5.3.0
I have reported in patagonist issue tracker, but it seems they have this issue since April 2014 - ALMOST 2 YEARS! Looks that they are not going to fix it or they simply don't know how.
I have the same issue on OSX 10.11, npm v2.14.9 and node v0.12.9. :-S.
@wuotr they have just released protagonist 1.2.5 which fixed bug on my system and aglio works like a sharm at this moment.
Indeed... it is fixed on my system as well ;-). /cc @pavelkornev
How about windows users? Did anyone manage to make aglio up and running on any version of windows?
Still broken for me on two different Windows 7 machines with node v4.4.0, npm 3.8.0, and protagonist 1.2.6
Help! Any ideas on a solution?
FYI, I found a solution. See HERE.
I'd already done most of the steps, but slightly differently. I installed standard python from python.org, then installed Visual Studio 2015 Community, then added Visual C++ support from within VS2015 via File -> New -> Project, then
I think the key step is #5 ... "Set the npm config variable msvs_version to 2015: npm config -g set msvs_version 2015
"
After this, aglio installed successfully, although I did get one warning as follows...
npm WARN optional Skipping failed optional dependency /aglio/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.8
Any hope for removing the protagonist (and thus the node-gyp) dependency? This has been a real deal breaker for us unfortunately.
Hello All,
Although being a linux fan, my company's requirement is to work under windows. I'm trying to install agliounder windows and I'm failing with it:
I can see that agliois trying to use something like MSBUILD, which - as I found in www - is related to MS Visual Studio. My questions are: