Closed JigneshRaval closed 9 years ago
From official node-sass docs:
Compiling versions 0.9.4 and above on Windows machines requires Visual Studio 2013 WD. If you have multiple VS versions, use npm install with the --msvs_version=2013 flag also use this flag when rebuilding the module with node-gyp or nw-gyp.
Hi Cong Liu,
I am really thankful for your reply and I am sorry about forgetting to mention that after installing Visual Studio 2013 my issue has been resolved.
But I would like to ask one question that why we need this much heavy software just for compiling and getting binding.node file.
Could you please guide about any other easy or less complicated way which can be easily implement without requiring such a heavy and proprietary software like Visual Studio 2013 which installs so many things like Silverlight, F#, C#, ASP.net, SQL Server and many things. I think which are not require in building node-sass or any other like node-sass.
I mean it is possible to use any Freeware C/C++ IDE with compiler dependency like C++ Run-time 2013, .net Framework 4.5 or any particular components or redistributables?
Please guide me on this because your guidance will be helpful to understand the process behind this.
Thanks & Regards, Jignesh Raval
can you help me?
Hi Cong Liu,
I hope this will be helpfull. Today I have got this.
MSBuild Engine is now Open Source on GitHub.
http://blogs.msdn.com/b/dotnet/archive/2015/03/18/msbuild-engine-is-now-open-source-on-github.aspx
Here is a brief description: MSBuild Visual Studio 2013 Other Versions
The Microsoft Build Engine is a platform for building applications. This engine, which is also known as MSBuild, provides an XML schema for a project file that controls how the build platform processes and builds software. Visual Studio uses MSBuild, but it doesn't depend on Visual Studio. By invoking msbuild.exe on your project or solution file, you can orchestrate and build products in environments where Visual Studio isn't installed.
Visual Studio uses MSBuild to load and build managed projects. The project files in Visual Studio (.csproj,.vbproj, vcxproj, and others) contain MSBuild XML code that executes when you build a project by using the IDE. Visual Studio projects import all the necessary settings and build processes to do typical development work, but you can extend or modify them from within Visual Studio or by using an XML editor.
For information about MSBuild for C++, see MSBuild (Visual C++).
The following examples illustrate when you might run builds by using an MSBuild command line instead of the Visual Studio IDE.
Visual Studio isn't installed.
You want to use the 64-bit version of MSBuild. This version of MSBuild is usually unnecessary, but it allows MSBuild to access more memory.
You want to run a build in multiple processes. However, you can use the IDE to achieve the same result on projects in C++ and C#.
You want to modify the build system. For example, you might want to enable the following actions:
Preprocess files before they reach the compiler.
Copy the build outputs to a different place.
Create compressed files from build outputs.
Do a post-processing step. For example, you might want to stamp an assembly with a different version.
You can write code in the Visual Studio IDE but run builds by using MSBuild. As another alternative, you can build code in the IDE on a development computer but use an MSBuild command line to build code that's integrated from multiple developers.
@JigneshRaval Noted. Thank you for providing another alternative. However VS is currently the official way to work with nw-gyp.
For further questions about nw.js, please refer to Gitter or Mailing list.
Hello Sir,
I am new in node.js and node-webkit development. Currently I am trying to build one small application like jsfiddle or codepen which compiles my CSS, HTML and JS code and gives output in iframe. for that I want to include support of SASS using node-sass v2.0.0 or newer.
but I am facing in using node-sass (v2.0.0 or 2.0.1) in node-webkit version 0.12.0 Alpha 3 ( 64 bit). I need you help to resolve this issue. I tried everything that I found on internet but not getting any idea how to fix it.
Below is the configuration I am using.
When I am issuing following command in cmd then it works well
But after that when I run
nw-gyp build
it throws various errors as listed below.Please guide me how can I resolve this issue.
Thank you,