New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node sass install fails to compile (Windows 7) #1379
Comments
Relevant section of the error log
|
That's the TRACKER TRK002 error when running CL.EXE |
I'm having a different issue with Windows 7 and VS 2013. Appears that when npm pulls down the files to build a lot of header files are missing. Here's a gist with all the error logs No idea why it keeps telling me to set the HTTP_PROXY environment, I've set it in the bash and in the npm config. fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory (..\src\sass_context_wrapper.cpp) [c:...\node_modules\node-sass\build\binding.vcxproj] |
@pcimino which Windows SDK do you have installed? |
At the time of this attempt only VS 2013. The frustrating thing is node-sass/gulp-sass would install and worked for over a year. Recently I installed VS 2015 and now node-sass won't compile. Went through all the trouble shooting docs, states all I need is 2015, so uninstalled all MS C++ and visual studio libraries and started over with SDK 7 and C++ 2010 along with the SP1 etc. Uninstalled that and tried 2013, uninstalled that and back to 2015. SImilar errors with all of them. |
Please use only VS2013 until the |
Your first problem is this:
That suggests some problems with the networking (or more likely proxy) setup. I'd check |
The attempt to compile fails because the Windows SDK cannot be found:
Check your registry entries to make sure your SDKs are properly installed:
etc. Those directories should contain |
Also make sure you are running your npm installation out of the Visual Studio 2013 command shell, so that all environment variables including paths to the SDK are set. |
I fixed my problem. My issue was due to the configuration of my work machine. My normal account did not have access to right path environment, so running as admin got me the right path and subsequently installed correctly. I'll leave this open for pcimino |
I think I know when this all started... I installed the Github WIndows client and immediately started having git SSL issues. Thought I worked through all that...but in retrospect, the last time I ran a full successful npm install including sass, was before that. Going to burn everything to the ground and start fresh with Win SDK 7, VS 2013, Node and a fresh install of git bash. |
That did it. Uninstalled everything, reboot, then reinstalled Node, Git, Win SDK 7 and VS 2013. Thanks for the ideas. |
I had this issue also, on two different apps, left the package.json in file structure, ran npm init, went through it quick, ran the npm rebuild on the modules it told me to, and then everything worked fine. Tried it exact same way in new folder and once again fixed it, dunno if this helps anyone. |
Works for me with: OS: Windows 10 |
Fix checking whether we can use TAP mode...
I have attached the debug information below. I have installed the Express edition of Visual Studio 2013. It appears to be an issue with my C++ compilation, but I am unsure what exactly is wrong.
Things I have tried
npm.err.txt
npm.log.txt
The text was updated successfully, but these errors were encountered: