I'm using VS2015 and Gulp. I open the Task Runner Explorer and hit refresh, and this shows up in the log:
Failed to run "C:ProjectsTestGulpfile.js"...
cmd.exe /c gulp --tasks-simple
Error: `libsass` bindings not found in C:ProjectsTest
ode_modulesgulp-sass
ode_modules
ode-sassvendorwin32-ia32-11inding.node. Try reinstalling `node-sass`?
at Object.sass.getBinaryPath (C:ProjectsTest
ode_modulesgulp-sass
ode_modules
ode-sasslibextensions.js:148:11)
at Object.<anonymous> (C:ProjectsTest
ode_modulesgulp-sass
ode_modules
ode-sasslibindex.js:16:36)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:ProjectsTest
ode_modulesgulp-sassindex.js:163:21)
at Module._compile (module.js:456:26)
So I try to run cmd.exe /c gulp --tasks-simple
in PowerShell, in the same directory, and it works fine - it returns a list of tasks.
I'm also able to run my SASS-related tasks just fine, so I'm not sure why this is complaining about SASS when it's being run via VS but not directly on the command line.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…