Craytor's avatar

Laravel Elixir and Node.js Install Issues on Windows

Hello! I am trying to get Laravel Elixir up and running on my Windows PC. When I run npm install, I get the following error:

$ npm install
npm WARN package.json @ No repository field.
|
> node-sass@1.0.1 install c:\Users\Tyler\Desktop\Code\test-laravel-5-project\nod
e_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass
> node build.js

`win32-x64-v8-3.14` exists; testing

c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\laravel-elixir\n
ode_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" rebui
ld
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Users\Tyler\D
esktop\Code\test-laravel-5-project\node_modules\laravel-elixir\node_modules\gul
p-sass\node_modules\node-sass\build\binding.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Users\Tyler\D
esktop\Code\test-laravel-5-project\node_modules\laravel-elixir\node_modules\gul
p-sass\node_modules\node-sass\build\binding.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Users\Tyler\D
esktop\Code\test-laravel-5-project\node_modules\laravel-elixir\node_modules\gul
p-sass\node_modules\node-sass\build\binding.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Users\Tyler\D
esktop\Code\test-laravel-5-project\node_modules\laravel-elixir\node_modules\gul
p-sass\node_modules\node-sass\build\binding.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Users\Tyler\D
esktop\Code\test-laravel-5-project\node_modules\laravel-elixir\node_modules\gul
p-sass\node_modules\node-sass\build\binding.vcxproj]
  binding.cpp
  sass_context_wrapper.cpp
  ast.cpp
  base64vlq.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\sass_
context_wrapper.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_m
odules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\bindi
ng.vcxproj]
  bind.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\ast.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\la
ravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxpro
j]
  constants.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\bind.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\l
aravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxpr
oj]
  context.cpp
  contextualize.cpp
  copy_c_str.cpp
  error_handling.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\context.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_module
s\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vc
xproj]
  eval.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\contextualize.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_
modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\bind
ing.vcxproj]
  expand.cpp
c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\node_modules\nan\nan.h(1221): war
ning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of da
ta (..\binding.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_mo
dules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\bindin
g.vcxproj]
c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\node_modules\nan\nan.h(1247): war
ning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of da
ta (..\binding.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_mo
dules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\bindin
g.vcxproj]
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\bindi
ng.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\larave
l-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxproj]
  extend.cpp
  file.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\eval.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\l
aravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxpr
oj]
  functions.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\expand.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules
\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcx
proj]
  inspect.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\extend.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules
\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcx
proj]
  node.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\file.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\l
aravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxpr
oj]
  output_compressed.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\functions.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modu
les\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.
vcxproj]
  output_nested.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\inspect.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_module
s\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vc
xproj]
  parser.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\node.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\l
aravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxpr
oj]
  prelexer.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\output_compressed.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\n
ode_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\
binding.vcxproj]
  remove_placeholders.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\output_nested.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_
modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\bind
ing.vcxproj]
  sass.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\parser.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules
\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcx
proj]
  sass2scss.cpp
  sass_interface.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\remove_placeholders.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project
\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\buil
d\binding.vcxproj]
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\sass_interface.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node
_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\bin
ding.vcxproj]
  sass_util.cpp
  source_map.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\sass.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\l
aravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxpr
oj]
  to_c.cpp
  to_string.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\to_c.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\l
aravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxpr
oj]
  units.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\source_map.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_mod
ules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding
.vcxproj]
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\sass_util.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modu
les\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.
vcxproj]
  utf8_string.cpp
  util.cpp
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\to_string.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modu
les\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.
vcxproj]
..\libsass\utf8_string.cpp(50): warning C4267: 'initializing' : conversion from
 'size_t' to 'long', possible loss of data [c:\Users\Tyler\Desktop\Code\test-la
ravel-5-project\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules
\node-sass\build\binding.vcxproj]
c:\users\tyler\desktop\code\test-laravel-5-project\node_modules\laravel-elixir\
node_modules\gulp-sass\node_modules\node-sass\libsass\sass.h(4): fatal error C1
083: Cannot open include file: 'stdbool.h': No such file or directory (..\libsa
ss\util.cpp) [c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\l
aravel-elixir\node_modules\gulp-sass\node_modules\node-sass\build\binding.vcxpr
oj]
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_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Users\Tyler\Desktop\Code\test-laravel-5-project\node_modules\lar
avel-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\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd c:\Users\Tyler\Desktop\Code\test-laravel-5-project
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

And my package.json contains:

{
    "devDependencies": {
        "gulp": "^3.8.8",
        "laravel-elixir": "^0.3.5"
    }
}

Has anyone here had this issue, or can assist me?

Thanks!

0 likes
17 replies
yunusis's avatar

I have the same issue and no solution :(

lytedev's avatar

stdbool.h is apparently part of the C99 library, unsupported by Visual Studio <2012.

I had the same issue and installing Visual Studio 2013, which apparently does support C99, solved my issue.

Note that your version of node-gyp must support VS2013! I'm not sure which version it was introduced in, but I have a fairly oldish node install and it worked fine for me. Worst case scenario: just reinstall node or manually update node-gyp a la https://github.com/TooTallNate/node-gyp/wiki/Updating-npm%27s-bundled-node-gyp

Good luck!

moshie's avatar

I am getting what I think to be a similar error. I have tried Lytedev's suggestion but still no luck :(

'''

npm WARN package.json @ No repository field.

node-sass@1.0.1 install C:\www\way2adv\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass node build.js

win32-x64-v8-3.14 exists; testing

C:\www\way2adv\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! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_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.:107:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\www\way2adv\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok Build failed npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v0.10.28 npm ERR! npm v2.1.4 npm ERR! code ELIFECYCLE

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! Please include the following file with any support request: npm ERR! C:\www\way2adv\npm-debug.log

'''

lytedev's avatar

Ok! So I've basically run into every possible issue with Elixir on windows.

  1. Make sure you have Python 2.7 installed and in your PATH. If you want to keep 3.x in your path instead, run this command before your npm install
npm config set python /path/to/python2.x.exe
  1. Install Visual Studio Express 2013 with Update 3 for Windows Desktop and restart. http://www.visualstudio.com/downloads/download-visual-studio-vs

  2. If you have other versions of Visual Studio installed, you'll need to tell npm. Add the flag --msvs_version=2013 to your npm install

  3. If you're using the Elixir .version() task, you'll have issues with your rev-manifest unless you use the latest version. Before your npm install, edit your package.json to use laravel-elixir version ^0.4.4 or better.

... Aaaand I think this will solve the majority of issues!

4 likes
Craytor's avatar

lytedev - You're amazing! Fixed a bunch of issues! Thanks!

JohnRankin's avatar

Also HAD a few issues .....

Windows 10 , 64 change to : Windows PowerShell .. npm install -g npm

All working now

1 like
ryanmortier's avatar

Also getting this error inside the Homestead VM. Windows 10 + Virtualbox 5.0

ryanmortier's avatar

I've gotten around my issue by installing node/npm/gulp on Windows and using Gulp from PowerShell. Kind of defeats the purpose of Vagrant but I have no other solutions...

1 like
zhiyong's avatar

@JohnRankin

Did you get elixir to work on windows 10 64 in powershell without installing VS2013? I am having the same issue and really not a big fun of installing bulky vs2013 just for elixir.

fercho's avatar

I moved to ubuntu because windows issues regarding node. (Windows =! Develop)

ryanmortier's avatar

It's not realistic for many of us working in corporate environments to change OS just because of a small issue. If I changed OS, I wouldn't be able to do a bunch of other things that the other operating systems lack.

@zhiyong no need to install VS2013, just install node with the binary from their website and then open PowerShell as administrator and run all your node stuff from PowerShell.

1 like
zhiyong's avatar

@ryanmortier Thanks for the confirmation. I was about to move all the files to mac then decided to give it another try after seeing your post. It worked. The problem was that some mess was left in the folder node_modules from previous attempts. After deleting this folder and running npm install generated a few warning but I was able to run gulp afterwards.

1 like
amosmos's avatar

Wow who knew all it takes is to run npm install from powershell. I tried so many things and ways and nothing worked until this little tip.

Thanks @ryanmortier !!!

andylord565's avatar

Hi to solve this on windows 10 i had to use the nodejs command prompt provided by node Run as administrator hope this helps

Donika's avatar
$ npm install
npm WARN deprecated gulp-minify-css@0.3.13: Please use gulp-cssnano instead.
npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0
npm WARN deprecated pangyp@2.3.3: use node-gyp@3+ instead

> node-sass@2.1.1 install C:\laragon\www\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass
> node scripts/install.js

Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/win32-x64-node-4.2/binding.node

> node-sass@2.1.1 postinstall C:\laragon\www\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass
> node scripts/build.js

gyp: C:\Users\Valeriy\.node-gyp\4.2.6\common.gypi not found (cwd: C:\laragon\www\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass) wh                                                                                                                 ile reading includes of binding.gyp 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:\laragon\www\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\node_modules\pangyp\lib\                                                                                                                 configure.js:346:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\laragon\\www\\node_modules\\laravel-elixir\\node_modules\\gulp-sass\\node_modules\\node-sass\\node                                                                                                                 _modules\\pangyp\\bin\\node-gyp" "rebuild"
gyp ERR! cwd C:\laragon\www\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v4.2.6
gyp ERR! pangyp -v v2.3.3
gyp ERR! not ok
Build failed
npm WARN prefer global coffee-script@1.10.0 should be installed with -g

> expect@1.13.4 postinstall C:\laragon\www\node_modules\expect
> node ./npm-scripts/postinstall.js

npm WARN prefer global jshint@2.9.1 should be installed with -g
npm WARN prefer global leasot@1.3.2 should be installed with -g
npm WARN prefer global marked@0.3.5 should be installed with -g
npm WARN prefer global node-gyp@3.2.1 should be installed with -g

> node-sass@3.4.2 install C:\laragon\www\node_modules\node-sass
> node scripts/install.js


> node-sass@3.4.2 postinstall C:\laragon\www\node_modules\node-sass
> node scripts/build.js

` C:\laragon\www\node_modules\node-sass\vendor\win32-x64-46\binding.node ` exists.
 testing binary.
Binary is fine; exiting.

> spawn-sync@1.0.15 postinstall C:\laragon\www\node_modules\spawn-sync
> node postinstall

laravel-elixir@0.4.17 node_modules\laravel-elixir
├── install@0.1.8
├── require-dir@0.1.0
├── gulp-shell@0.2.11 (async@0.9.2, lodash@2.4.2, through2@0.6.5)
├── gulp-rev@2.0.1 (object-assign@1.0.0, through2@0.6.5)
├── del@0.1.3 (globby@0.1.1)
├── gulp-load-plugins@0.7.1 (multimatch@1.0.0, findup-sync@0.1.3)
├── gulp-phpspec@0.3.1 (gulp-util@2.2.20)
├── gulp-phpunit@0.6.3 (gulp-util@2.2.20)
├── gulp-minify-css@0.3.13 (memory-cache@0.0.5, through2@0.6.5, bufferstreams@0.0.2, clean-css@3.0.10)
├── gulp-autoprefixer@1.0.1 (object-assign@1.0.0, through2@0.6.5, autoprefixer-core@3.1.2)
├── gulp-notify@1.8.0 (lodash.template@2.4.1, gulp-util@2.2.20, node-notifier@3.4.1)
├── gulp-less@1.3.9 (convert-source-map@0.4.1, lodash.defaults@2.4.1, through2@0.5.1, less@1.7.5)
├── npm@2.14.18
└── gulp-sass@1.3.3 (clone@0.1.19, map-stream@0.1.0, node-sass@2.1.1)

I have this problems =(

JWLKR's avatar

I had similar issue. I don't exactly know what caused the issue, but installing the dependencies via CMD did not work properly, even though npm would run. Instead, I (reluctantly) deleted node_modules from directory and used node.js command prompt that came with node, I re-installed gulp, I ran npm install, and the issues with gulp and elixir were both resolved.

Not sure if anyone else is experiencing this issue, but this is what worked for me. Running windows 10.

Please or to participate in this conversation.