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

Windows install fails #213

Closed
tiborsaas opened this issue Jan 8, 2014 · 5 comments
Closed

Windows install fails #213

tiborsaas opened this issue Jan 8, 2014 · 5 comments

Comments

@tiborsaas
Copy link

Hello,

I'm on Win7 64 bit.

Got the following error after npm install node-sass

F:\path\node_modules\node-sass>node "C:\Program Files (x86)\node
js\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.j
s" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.t
argets(42,5): error MSB8020: The builds tools for Visual Studio 2010 (Platform
Toolset = 'v100') cannot be found. To build using the v100 build tools, either
click the Project menu or right-click the solution, and then select "Update VC+
+ Projects...". Install Visual Studio 2010 to build using the Visual Studio 201
0 build tools. [F:\dev\www\labs\fuckner\node_modules\node-sass\build\binding.vc
xproj]
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:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\build.js:236:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\nod
e_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd F:\dev\www\labs\fuckner\node_modules\node-sass
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
Build failed
npm ERR! node-sass@0.7.0 install: `node build.js`
npm ERR! `cmd "/c" "node build.js"` failed with 1
npm ERR!
npm ERR! Failed at the node-sass@0.7.0 install script.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-sass"
npm ERR! cwd F:\dev\www\labs\fuckner
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     F:\dev\www\labs\fuckner\npm-debug.log
npm ERR! not ok code 0
@nschonni
Copy link
Contributor

nschonni commented Jan 8, 2014

What versions of Visual Studio do you have installed on you machine?
Node 0.10 is a requirement for build/run https://github.com/andrew/node-sass/blob/master/package.json#L37

@LaurentGoderre
Copy link
Contributor

The way I make it work is after the npm install fails, I go and modify the generated Visual Studio project.

@1000i100
Copy link

How about a binary package for those who don't have Visual Studio at all ?

@nschonni
Copy link
Contributor

@GammaNu the binary package is included in the NPM install. The rebuild is only required if the testing of the binary fails

@nschonni
Copy link
Contributor

Closing since the original issue was with Node 0.8 which isn't supported

jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Use autoreconf -i and add gitkeep to m4 to make automake happy
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

4 participants