node-sass

Node Sass missing binding for multiple node versions

梦想与她 提交于 2019-12-06 08:13:11
I am using nvm to switch between node versions. My package.json: "scripts": { "dev": "rm -rf public/assets/*.hot-update.js && NODE_ENV=development webpack --env=dev --progress --profile --colors", "prod": "NODE_ENV=production webpack --env=prod --progress --profile --colors" }, "author": "", "license": "ISC", "devDependencies": { "babel-core": "^6.18.2", "babel-loader": "^6.2.10", "babel-preset-es2015": "^6.18.0", "babel-preset-stage-0": "^6.16.0", "babel-preset-stage-2": "^6.18.0", "compression-webpack-plugin": "^0.3.2", "css-loader": "^0.26.2", "extract-text-webpack-plugin": "^2.0.0", "file

Unable to install node-sass in my project [closed]

半腔热情 提交于 2019-12-06 06:21:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 months ago . I am doing wes-bos Learn Node course. When I run npm start it shows - cannot find module node-sass. And when I try to run npm install node-sass --save , it gives me the following errors. 回答1: Uninstall node-sass: npm uninstall node-sass Delete package-lock.json , and clean the cache: npm cache clean --force ,

关于安装gulp-sass失败的问题解决

时光毁灭记忆、已成空白 提交于 2019-12-06 02:07:39
该文章所介绍的问题均是在64位win8下出现的。 网络原因导致gulp-sass安装失败 如果你正在构建一个基于 gulp 的前端自动化开发环境,那么极有可能会用到 gulp-sass ,由于网络原因你可能会安装失败,因为安装过程中部分细节会到亚马逊云服务器上获取文件。 执行安装gup-sass的命令 $ npm install gulp -sass -- save -dev 这个过程中会先安装 node-sass ,因为 gulp-sass 依赖于 node-sass 。中间出现的错误信息类似下面这样: Cannot download https: / /github.com/sass /node-sass/releases /download/v 3. 4.2 /win32-x64- 46_ bind 处理思路 看现象很有可能是这些二进制文件使用了 GitHub 的 lfs 服务,而 lfs 使用的是亚马逊云,由于网络原因,这些服务器无法访问。 现在解决问题的办法思路就很清晰了,下载源码自己编译一个这样的二进制文件,或下载官方的二进制文件。只要解决该文件的下载问题就可以继续往后安装。 打开 github 看一下该项目 https://github.com/sass/node-sass ,在 releases 页面能找到下失败的文件 win32-x64-46_binding

Issue using node-sass after updating NodeJS

馋奶兔 提交于 2019-12-05 14:38:19
问题 I get an issue using node-sass after updating my NodeJS version. Issue : (node:472) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. C:\aglqng\src\main\webapp\node_modules\node-sass\lib\index.js:15 throw new Error(errors.missingBinary()); ^ Error: Missing binding C:\aglqng\src\main\webapp\node_modules\node-sass\vendor\win32-x64-48\binding.node Node Sass could not find a binding for your current

uni-app安装scss/sass后报错:node-sass\4.12.0\win32-x64-64_binding.node is not a valid Win32 application.

Deadly 提交于 2019-12-05 13:02:06
场景描述 最近在使用uni-app开发小程序时,因为引入了第三方组件使用了sass,HBuilder默认没有安装‘scss/sass’插件,导致编译报错,于是用IDE安装了一下,但是接着运行小程序又出现了如下错误: 17:27:14.564 Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): 17:27:14.565 ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): 17:27:14.575 Error: \\?\C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.12.0\win32-x64-64_binding.node is not a valid Win32 application. 17:27:14.587 \\?\C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.12.0\win32-x64-64_binding.node 17:27:14.595 at Object.Module.

EACCES: permission denied, mkdir '/node_modules/node-sass/build' while running npm install on ubuntu

此生再无相见时 提交于 2019-12-05 09:31:18
i have an angular 4 app and i want to run it on ubuntu. i copied all project files , package.json and package-lock.json to a folder in winscp but i didn't copy node_modules! now when i run npm install, i get the errors like this: > node-sass@4.7.2 install /home/ubuntu/cms/node_modules/@angular/cli/node_modules/node-sass > node scripts/install.js Unable to save binary /home/ubuntu/cms/node_modules/@angular/cli/node_modules/node-sass/vendor/linux-x64-57 : { Error: EACCES: permission denied, mkdir '/home/ubuntu/cms/node_modules/@angular/cli/node_modules/node-sass/vendor' at Object.fs.mkdirSync

npm just won't install node sass

旧巷老猫 提交于 2019-12-05 08:06:51
I first encountered the issue when trying to use ionic and it needed the dependency for its templates. Then when I tried to install node-sass with npm myself the issue persisted. This is on Windows 10 Version 1703 , both nodejs 6.11.3 and nodejs 8.4.0 tried out, ended up with same result. And VPN, http proxy were tried with no luck. Basically, it's saying : Cannot download " https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-57_binding.node " when nothing is fiddled with ,it says : connect ECONNREFUSED 127.0.0.1:443 when using npm set config proxy,it says something like:

How to compile scss to css with node-sass

放肆的年华 提交于 2019-12-05 05:20:37
I have a master.scss with many imports from other .scss files. If I change a * .scss file master.css is generated automatically. I use only the NPM, no Gulp or Grunt! This should remain so. My current build script: "scripts": { "watch-sass": "sass --watch src/scss/master.scss:dist/css/master.css" } That's nice but takes a long time to compile! Now I'm trying to use node-sass . It should compile very fast. Unfortunately, I do not understand it completely ... node-sass is installed, via npm install node-sass Where do I use the following (from docs)? var sass = require('node-sass'); sass.render({

vue-element-admin在install的时候关于sass的错误信息

好久不见. 提交于 2019-12-04 20:51:36
vue-element-admin在install的是报关于sass的错误信息 今天使用vue-element-admin给自己弄的一个微信小程序编写一个后台管理系统的时候,报关于sass的错误,下载问题 比如出现: Cannot download "https://github.com/sass/node-sass/releases/download/版本号/XXX_binding.nod 或者 Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-64_binding.node (表示不能下载sass或者需要去网站下载对应二进制文件) 有可能是网速问题,有可能是sass被墙了 可以下载而进制文件,然后对二进制文件进行环境变量的配置 但是这个方法比较繁琐,也可能导致不同的版本问题提示版本不同命令不可使用 终极方法 使用淘宝镜像下载: npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ 完没解决 来源: https://www.cnblogs.com/JCDXH/p/11882918.html

node-sass 埋坑记录

本秂侑毒 提交于 2019-12-04 16:07:45
node-sass 埋坑记录 背景 原有项目、环境: node:v8.16.2 npm:v6.4.1 node-sass::v4.8.0 Angular-CLI:v6.x 本机没有安装 Visual Studio 以上是涉及到的工具的版本,可正常使用,项目运行良好。 后来,接手的新项目中: Angular-CLI:v8.x 由于升级了 Angular 版本,同样也升级了 Angular-CLI 版本,导致 v8.x 版本的 node 已经无法编译 angular 项目,至少需要使用 node v10.x 版本。 无奈,升级了 node 版本,随之而来的就是 node-sass v4.8.0 版本无法使用,又导致构建失败,所以又得安装新版本 node-sass。 但 node-sass 新版本安装过程却又报找不到 Python 环境错误,导致 install 失败。 好不容易在本地安装了 Python 环境,又报了个 MSB4132:无法识别工具版本 2.0 的错误。 在网上查了半天,跟着改,却又出现新错误 MSB4019:Microsoft.Cpp.Default.props 找不到的错误。 找了下,发现是因为本机没有 VS C++ 的编辑工具,可以借助: npm install -g --production windows.build.tools 来下载安装,试了下