Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Not installing on Win8 (64 bit) #893

Closed
andrey-luzin opened this issue Apr 24, 2015 · 9 comments
Closed

Not installing on Win8 (64 bit) #893

andrey-luzin opened this issue Apr 24, 2015 · 9 comments

Comments

@andrey-luzin
Copy link

Getting this error when installed node-sass. Ubuntu installs with no problem.


C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.  TargetFra meworkVersion or PlatformToolset may be set to an invalid version number. [c:\projects\devvela-front\node_modules\node-sass\build\binding.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(146,5): error MSB6006: "CL.exe" завершилась с кодом -1073741515. [c:\projects\d evvela-front\node_modules\node-sass\build\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\projects\devvela-front\node_modules\node-sass\node_modules\pangyp\lib\build.js:271:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:169:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1009:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "c:\\projects\\devvela-front\\node_modules\\node-sass\\node_modules\\pangyp\\bin\\node-gyp" "rebuild"
gyp ERR! cwd c:\projects\devvela-front\node_modules\node-sass
gyp ERR! node -v v1.8.1
gyp ERR! pangyp -v v2.1.0
gyp ERR! not ok

@xzyfer
Copy link
Contributor

xzyfer commented Apr 24, 2015

Hi @andrey-luzin can you please follow the instructions in this gist and paste the full output here - https://gist.github.com/am11/e5de3c49c219f0811e1d

@saper
Copy link
Member

saper commented Apr 25, 2015

@andrey-luzin which version of Windows SDK do you have installed?

@saper
Copy link
Member

saper commented Apr 25, 2015

The error message you are getting is C0000135 which is "Unable to locate component". You compiler cannot find Windows SDK or another important component.

@xzyfer
Copy link
Contributor

xzyfer commented Apr 25, 2015

Given that we supply Windows binaries I would have expected there wouldn't be any need for SDKs. Am I mistaken @saper ?

Frankly it's possible I didn't compile the binaries correctly. @am11 has always done that and I couldn't find any documentation on the topic.

@saper
Copy link
Member

saper commented Apr 26, 2015

@xzyfer Obviously the log is from pangyp so somehow the build process got started.

Looks like this is node "1.8.1" which means a brand new io.js. This version still uses NODE_MODULE_VERSION set to 43, but I think OP is running into #870 which is in turn nodejs/node#751.
So if io.js is not invoked as iojs.exe our binary will not work, because our DLL for node module version wants to link to iojs.exe, not node.exe (I admit I checked it only for 32-bit win32, but I guess 64-bit is the same).

Does copying node.exe to iojs.exe help?

@andrey-luzin
Copy link
Author

Problem solved. I installed nodejs and iojs via nvmw, selected the current version and then install.

@saper
Copy link
Member

saper commented Apr 27, 2015

:+1 good!

@xzyfer
Copy link
Contributor

xzyfer commented Apr 27, 2015

Great, I'll add this to the upcoming troubleshooting guide.

@xzyfer xzyfer closed this as completed Apr 27, 2015
@xzyfer
Copy link
Contributor

xzyfer commented Apr 27, 2015

Thanks for all your help @saper

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants