node-sass

Getting Undefined variable error when compiling SCSS using node-sass

不羁岁月 提交于 2020-07-08 07:02:50
问题 package.json "scripts": { "compile:sass": "node-sass sass/main.scss css/style.css -w" } main.scss @import "abstracts/variables"; @import "base/typography"; _variables.scss $color-light-grey: #777; $color-white: #fff; _typography.scss body { color: $color-light-grey; } .heading-primary { color: $color-white; } Now my issue is when I'm trying to compile with npm run compile:sass it throws the following error: "message": "Undefined variable: \"$color-light-grey\"." 回答1: Looks like there are two

NPM node-sass installation fails

坚强是说给别人听的谎言 提交于 2020-06-12 09:37:37
问题 I am trying to install node-sass in a project, which perfectly builds and runs on my pc but on my surface I am having major issues when trying to install the packages. Note: I have tryed reinstalling and rebuilding the project several times. Summary of the error: gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\Max-T\Documents\Sources

NPM node-sass installation fails

∥☆過路亽.° 提交于 2020-06-12 09:34:32
问题 I am trying to install node-sass in a project, which perfectly builds and runs on my pc but on my surface I am having major issues when trying to install the packages. Note: I have tryed reinstalling and rebuilding the project several times. Summary of the error: gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\Max-T\Documents\Sources

NPM node-sass installation fails

南笙酒味 提交于 2020-06-12 09:33:29
问题 I am trying to install node-sass in a project, which perfectly builds and runs on my pc but on my surface I am having major issues when trying to install the packages. Note: I have tryed reinstalling and rebuilding the project several times. Summary of the error: gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\Max-T\Documents\Sources

Is there any way to use sass instead of node-sass (default for sass-loader) in Nuxt.js?

痞子三分冷 提交于 2020-05-18 04:30:09
问题 I'm trying to use sass package instead of node-sass in Nuxt.js. I found a config like this; // vue.config.js module.exports = { css: { loaderOptions: { sass: { implementation: require('sass'), // This line must in sass option }, }, } } but I couldn't figure out where to put this code in Nuxt.js. 回答1: Its already pointed on documentation. nuxt.config.js : build: { ... loaders: { sass: { implementation: require('sass') }, scss: { implementation: require('sass') } } ... } 来源: https:/

Integrate node-sass-json-importer into an Angular CLI application

[亡魂溺海] 提交于 2020-05-14 15:54:11
问题 Trying to add the node-sass-json-importer into an Angular CLI application. I was using version 1.0.0-beta.17 of the CLI, but haven't been able to figure it out using the current version 1.2 either. After installing it via yarn I don't know where it should be setup in the application configuration. Has anyone successfully integrated this into their application? The only answer I could find regarding this is for applications using Webpack, but not for the Angular CLI. 回答1: Solved this by

Building fresh packages卡很久

Deadly 提交于 2020-04-04 10:26:44
【NPM】Building fresh packages运行很久都没反应 原创onemetre 最后发布于2019-12-24 10:20:13 阅读数 287 收藏 展开 【问题】通过YARN 安装,Building fresh packages运行很久都没反应 直至NODE-SASS报错 【分析】百度后发现 node-sass一直报错 【结论】node-sass网络下载失败,找到C:\Users\Administrator\.yarnrc,删除此文件,然后 yarn config set registry https://registry.npm.taobao.org 类似方式设置以下代码 sass_binary_site项目 registry "https://registry.npm.taobao.org" sass_binary_site "https://npm.taobao.org/mirrors/node-sass/" phantomjs_cdnurl "http://cnpmjs.org/downloads" electron_mirror "https://npm.taobao.org/mirrors/electron/" sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs

node-sass 安装失败的报错

蹲街弑〆低调 提交于 2020-04-01 06:07:33
转自: https://www.jianshu.com/p/92afe92db99f 报错: E:\kibana>npm install node-sass > node-sass@3.8.0 install E:\kibana\node_modules\node-sass > node scripts/install.js Cannot download "https://github.com/sass/node-sass/releases/download/v3.8.0/win3 2-x64-48_binding.node": tunneling socket could not be established, cause=socket hang up Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g. export HTTP_PROXY=http://example.com:1234 or configure npm proxy via npm config set proxy http://example.com:8080 > node-sass@3.8.0 postinstall E:\kibana\node_modules\node

node-sass 问题

心不动则不痛 提交于 2020-03-21 03:12:42
node-sass是由于node版本不一致,导致node-sass下载依赖报错 解决方案,npm rebuild node-sass 来源: https://www.cnblogs.com/zqq-bk/p/12536238.html

npm 杂七杂八

╄→гoц情女王★ 提交于 2020-03-08 18:35:17
npm config set registry https://registry.npm.taobao.org npm install --registry=https://registry.npm.taobao.org npm install phantomjs-prebuilt@2.1.16 --ignore-scripts npm uninstall --save node-sass npm install --save node-sass cnpm uninstall --save node-sass cnpm install --save node-sass node-sass -v npm install node-sass -g cnpm install --save-dev node-sass 下载地址:http://npm.taobao.org/dist/phantomjs/ 来源: https://www.cnblogs.com/sharonzhang/p/12444030.html