This looks like only a very small portion of the error. Can you possibly provide the entire log?
Laravel Elixir on Windows 8.1
Hello, I'm getting the following error when i run npm install:
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: -1073741819
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:
Can anyone assist me please? Thanks
Do you have Visual Studio installed? By the looks of it you need Python and VS2010 installed... https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup
I don't understand this dependency of node-gyp with Visual Studio.
What is your opinion?
I'm having, for a long time, node and gulp errors in my Windows machine, and those errors doesn't follow a pattern, it appear and dissapear. It is very awful because you cannot get the error procedence :(
I'm running this on Windows 8.1 with Visual Studio 2013 for Windows desktop + Python 2.7
C:\server\projects\panel\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..
\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: -1073741819
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\server\projects\panel\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
Build failed
npm ERR! node-sass@1.0.1 install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@1.0.1 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.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\server\projects\panel
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
This error code seems to be associated with memory issues. I would try the following, although these are admittedly shots in the dark:
- Restart! If you just installed any of the dependencies, definitely do a restart so Windows can "detect" the new libraries, executables, etc.
- Try running the
npm installfrom an elevated command prompt.
Hopefully somebody has better advice than I. Failing anything else, it can't hurt (aside from time) to try reinstalling everything. These seems like a weird and random error based on limited googling around.
Restart didn't fix it, going to uninstall Visual Studio 2013 and install 2010.
I don't understand this dependency of node-gyp with Visual Studio.
What is your opinion?
I'm having, for a long time, node and gulp errors in my Windows machine, and those errors doesn't follow a pattern, it appear and dissapear. It is very awful because you cannot get the error procedence :(
From the README for node-gyp: https://github.com/TooTallNate/node-gyp/#installation
node-gyp Builds native addon modules. So for Windows, this basically means compiling via Visual Studio.
If you can post the errors, I can probably help you out (especially if you're on Windows 8.1) as I was up for about 8 hours last night getting stuff to work on my machine.
I'm getting similar errors. Surely it's not expected to install all this nonsense just to get Elixer up and running? Did something happen to the build process recently? Hopefully @jeffreyway can give some insight on this.
Hi @lytedev here put my errors log:
npm WARN package.json @ No repository field.
/
> node-sass@1.0.1 install c:\Users\codeatbusiness\Desktop\code\laravel5\node_modules\lara
vel-elixir\node_modules\gulp-sass\node_modules\node-sass
> node build.js
`win32-x64-v8-3.14` exists; testing
c:\Users\codeatbusiness\Desktop\code\laravel5\node_modules\laravel-elixir\node_modules\gu
lp-sass\node_modules\node-sass>node "c:\Program Files\nodejs\node_modules\npm\bi
n\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (c:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at c:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at Object.oncomplete (evalmachine.<anonymous>:107:15)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Users\codeatbusiness\Desktop\code\laravel5\node_modules\laravel-elixir\no
de_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
Build failed
npm ERR! node-sass@1.0.1 install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@1.0.1 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.2.9200
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd c:\Users\codeatbusiness\Desktop\code\laravel5
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
I think it is similar to the other users logs.
@codeatbusiness you need to install Pyton 2.7
Hi @opilo, within NodeJS npm or using the python windows installer?
I'd like to know what are the dependencies that I need to make work Elixir within my Laravel 5 project.
Thanks in advanced.
Windows installer, don't forget to add the path to your env.
Many thanks @opilo, I updated my last question.
You'r welcome @codeatbusiness. I'm still working on your second question, its been 10 hours now!
Many thanks @opilo. Great work!
I'm still getting an error after installing Python on my box:
`win32-x64-v8-3.14` exists; testing
c:\Users\Matt\Desktop\Dropbox\Websites\gdq-three\gdq\node_modules\gulp-sass\node_modules\node-sass>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-b
in\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual
Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [c:\Users\Matt\Desktop\Dropbox\Websites\gdq-three\gdq\no
de_modules\gulp-sass\node_modules\node-sass\build\binding.sln]
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\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Users\Matt\Desktop\Dropbox\Websites\gdq-three\gdq\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
Build failed
npm ERR! node-sass@1.0.1 install: `node build.js`
npm ERR! Exit status 1
If I didn't install python before, why sometimes it works and sometime it fails? This is the problem, that we cannot isolate the problem when it is a random problem.
UPDATE: After installing Python 2.7, restart OS, the errors appears :´(
Once you have Python 2 installed (however you want and anywhere) simply tell node-gyp where your python2 executable is like so:
node-gyp --python /path/to/python2.7
Then try the install again.
As far as I know, everything you need to get Elixir working on Windows is as follows:
- NodeJS/NPM
- Python 2.7
- Visual Studio 2013
Hahahaha, sorry but I view this requirement.... ehhhh ... imagine that you need for installing a .NET tool but it requires a Mac utility. I don't understand it.
Visual Studio 2013?????? OMG
I guess some people have got it working with earlier versions? However, I ran into issues similar to those found here:
https://laracasts.com/discuss/channels/general-discussion/laravel-elixir-on-windows
I removed Visual Studio 2013 and installed 2010 as explained here https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup. I still get the same error.
Are you by chance mixing 32-bit and 64-bit builds somehow?
Trying to using Elixir on Windows machine

:) hahaha
@lytedevI'm not sure. But i tried node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-b in\....\node_modules\node-gyp\bin\node-gyp.js" rebuild command and here's the result:
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.1
gyp info using node@0.10.32 | win32 | x64
gyp info spawn c:\python26\python.exe
gyp info spawn args [ 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\server\\projects\\panel\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Aria\\.node-gyp\\0.10.32\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Aria\\.node-gyp\\0.10.32',
gyp info spawn args '-Dmodule_root_dir=C:\\server\\projects\\panel',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\server\\projects\\panel\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\server\projects\panel) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--python=c:\\python26\\python.exe"
gyp ERR! cwd C:\server\projects\panel
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
I'm not familiar with that command or its purpose...
About this problem. Seems like worked after i install python 2.7 , set path , install VS2013. Still too much trouble to get elixir only.
Yes @RomTurk, and pray for it doesn't fail in another way. I think there are a lot of dependencies and if we were to develop in .NET I would understand it, but ... for PHP???
It's not Elixir that's the cause.
Elixir depends on node-sass which depends on node-gyp for building which requires Python >=2.5. node-sass also requires Visual Studio 2013 to be compiled on Windows due to using the C99 header stdbool.h. C99 is unsupported by Visual Studio <2013.
Welcome to Windows! Where it's always dependency hell.
I'm personally running Elixir just fine...
... Except I'm having issues with gulp-rev using Windows directory separators in the rev-manifests.json file... which is apparently impossible to manipulate from gulp. So I'm just using unversioned dist assets and no cache for my new project in the meantime. Hopefully this will be addressed soon.
Anybody having similar issues to this should refer to this thread: https://laracasts.com/discuss/channels/general-discussion/elixir-rev-manifest-windows-issues
TL;DR: I really need to set up my development environment in Linux.
Please or to participate in this conversation.