node-sass error when I run npm install for Predix seed node version:v4.4.3 npm version:2.15.1 system: windows 7 x64.
ERR! build error ERR! stack Error: C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1 ERR! stack at ChildProcess.onExit (C:\302018215\Predix Seed\predix-seed-develop\node_modules\node-sass\node_modu \node-gyp\lib\build.js:276:23) ERR! stack at emitTwo (events.js:87:13) ERR! stack at ChildProcess.emit (events.js:172:7) ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) ERR! System Windows_NT 6.1.7601 ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\302018215\\Predix Seed\\predix-seed-develop\\node_modules\\n -sass\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsas dflags=" "--libsass_library=" ERR! cwd C:\302018215\Predix Seed\predix-seed-develop\node_modules\node-sass ERR! node -v v4.4.3 ERR! node-gyp -v v3.4.0 ERR! not ok ld failed with error code: 1 ERR! Windows_NT 6.1.7601 ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins l" ERR! node v4.4.3 ERR! npm v2.15.1 ERR! code 128
Answer by Greg Stroup · Dec 06, 2016 at 03:40 PM
The Predix Seed app should work on Windows 7 with Node 4. You probably hit a network problem downloading one of the packages. Also, we recently removed some dependencies from the seed app, so the installation should be easier. Can you please pull the latest code from Github and try again? Thanks.
Answer by Micaela Connors · Aug 23, 2017 at 07:23 AM
If anyone else is still having this problem, I recently encountered the same error on Windows 10 and fixed it following these instructions for installing node-gyp on Windows: https://github.com/nodejs/node-gyp
Option 1 outlined here didn't work for me, so basically here's what fixed it for me:
Install Visual C++ Build Tools using the Default Install option.
I already had Python2.7, but also did npm config set python python2.7
Then npm config set msvs_version 2015
And, find your path to Python and set it: npm config set python /path/to/executable/python2.7
Thanks for adding these details! Also note, that that the predix-seed app has been replaced by the predix-webapp-starter app. I don't think you'll run into problems with the webapp-starter, but I'm not positive about windows.
Actually, this was a problem that I encountered earlier this week with the current webapp-starter, not the seed.
OK, good to know. Thank you. I just noticed you're on Windows 7 too. Sorry about that. I have tested on Windows 10 with no issues, but not Windows 7. Maybe ask your boss for a new laptop. : ) Just kidding. Thanks for sharing your solution.
No problem! Again, to clarify, I am on Windows 10.
Oh, I see, the original poster was using windows 7. Well, we're working on a new release of the web app starter, and we'll test it out on windows 10. Thanks.