gulp-sass

Task Runner Explorer can't load tasks

眉间皱痕 提交于 2019-11-26 18:54:29
问题 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:\Projects\Test\Gulpfile.js"... cmd.exe /c gulp --tasks-simple Error: `libsass` bindings not found in C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-11\binding.node. Try reinstalling `node-sass`? at Object.sass.getBinaryPath (C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\lib\extensions.js:148:11) at Object.<anonymous> (C:

Node Sass does not yet support your current environment: Linux 64-bit with false

烈酒焚心 提交于 2019-11-26 18:02:55
问题 Getting this error on Arch Linux with node-sass. I'm using it with gulp-sass. Node Sass does not yet support your current environment: Linux 64-bit with false Versions $ gulp -v [19:43:15] CLI version 3.9.1 [19:43:15] Local version 3.9.1 $ npm -v 3.9.0 Node $ node -v v6.2.0 Even using this command npm rebuild node-sass is not changing anything. 回答1: run npm rebuild node-sass or run sudo npm rebuild node-sass 回答2: in some cases you need to uninstall and install node-sass library. Try: npm

How to compile or convert sass / scss to css with node-sass (no Ruby)?

偶尔善良 提交于 2019-11-26 15:02:14
问题 I was struggling with setting up libsass as it wasn't as straight-forward as the Ruby based transpiler. Could someone explain how to: install libsass? use it from command line? use it with task runners like gulp and grunt? I have little experience with package managers and even less so with task runners. 回答1: I picked node-sass implementer for libsass because it is based on node.js. Installing node-sass (Prerequisite) If you don't have npm, install Node.js first. $ npm install -g node-sass

How to fix ReferenceError: primordials is not defined in node

廉价感情. 提交于 2019-11-26 08:02:10
问题 I have installed node modules by npm install, then I tried to do gulp sass-watch in command prompt. After that I got the below response. [18:18:32] Requiring external module babel-register fs.js:27 const { Math, Object, Reflect } = primordials; ^ ReferenceError: primordials is not defined Have tried this before gulp sass-watch npm -g install gulp-cli 回答1: I hit the same error. I suspect you're using node 12 and gulp 3. That combination does not work: https://github.com/gulpjs/gulp/issues/2324