【转载】解决Cannot download "https://github.com/sass/node-sass/releases/download...问题
因很早做了一个小demo,并且在其他成熟的电脑上(node配置好的)下载依赖包没什么问题,最近就在新的电脑上配置好所有东西后,去下载这个demo的依赖包,就出现了node-sass无法正常解析的问题,进行多次尝试,比如使用全局npm,还是cnpm(其实很不建议使用cnpm),但依然是报错,相信大家下载完成了却还是报错了,就有这些提示,可别想着是被拦截了哦,也别想着把这个https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-64_binding.node。去直接浏览器下载。
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-64_binding.node":
connect ETIMEDOUT 54.231.33.155:443
Timed out whilst downloading the prebuilt binary
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
出现Cannot download "https://github.com/sass/node-sass/releases/download...不能下载问题,这只是字面意思,其实已经下好了。接下来带大家找找看:
搜索如图地址(C:\Users\lenovo\AppData\Roaming\npm-cache,一般情况下配置是这么一个目录C:\Users\adminstator\AppData\Roaming\npm-cache\node-sass\4.9.3)
随带给大家介绍一款方便搜索的软件,everything,不多扯。
找到打开自己的当前版本目录你就会发现win32-x64-64_binding.node文件在里面躺着好好的,这原因不多反问,是需要自己去配置新的环境变量,让其自动找到相关文件。其实从Cannot download...这句问题的后面来看,原因在于是下载了,找不到相关文件导致,解决操作如下:
配置环境变量:
右击我的电脑-》属性-》高级系统设置(win10下是这样操作了,大家变通下)-》看到右下有个环境变量点进去
新建系统变量:
变量名:SASS_BINARY_PATH
变量值:C:\Users\lenovo\AppData\Roaming\npm-cache\node-sass\4.9.3\win32-x64-59_binding.node
变量值地址因个人安装配置有关,按照上面个人搜索到node-sass文件夹及相关文件地址为准,请自行变通
确定,然后再去项目操作,就ok了,如何出现类似,请重新下载一次node-sass。
小记:虽然这样可以解决指定版本的问题,但是对于node-sass的迭代,如果下载别的版本,那还得配置一次么?如果有前辈知道,欢迎留言于我,小墨在此感激U,U!
————————————————
版权声明:本文为CSDN博主「微小墨(伍六七)」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/lx1996082566/article/details/87901958
【转载】解决Cannot download "https://github.com/sass/node-sass/releases/download...问题的更多相关文章
- 完美解决Cannot download "https://github.com/sass/node-sass/releases/download/binding.nod的问题
①:例如很多人第一步就会这样做: 出现:Cannot download "https://github.com/sass/node-sass/releases/download/版本号/XX ...
- 转载请注明出处: https://github.com/qiu-deqing/FE-interview
转载请注明出处: https://github.com/qiu-deqing/FE-interview Table of Contents generated with DocToc FE-inter ...
- 解决Cannot download "https://github.com/sass/node-sass/releases/download/binding.nod的问题
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
- Node Sass could not find a binding for your current environment
Node环境从8升级到10后,Node Sass could not find a binding for your current environment 标签(空格分隔): Node Node环境 ...
- git 解决 error: failed to push some refs to 'https://github.com/xxxx.git'
在github远程创建仓库后, 利用gitbash进行提交本地文件的时候出现如下错误 [root@foundation38 demo]# git push -u origin master Usern ...
- git clone https://github.com/istester/ido.git ,确提示“Failed to connect to 192.168.1.22 port 8080: Connection refused” 的解决办法 。
不知道是否有同学遇到如下的问题: p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo } span.s1 { } git clone ...
- iOS - 解决Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named
1 本来cocopods没有问题,最近创建项目,利用cocopods导入第三方库的时候,出现如下错误: [!] Unable to add a source with url `https://gi ...
- Git - could not read Username for 'https://github.com',push报错解决办法
执行git push命令异常,如下: git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sou ...
- 错误:error: failed to push some refs to 'https://github.com/pzq7025/KG.git'的解决办法
一.问题在进行[git push orgin master]的时候出现如下错误 ! [rejected] master -> master (non-fast-forward) error: f ...
随机推荐
- 配置mysql时报错
配置mysql时无法启动此程序,因为计算机丢失MSVCR100.dll. 去https://cn.dll-files.com/下载相应的版本 复制MSVCR100.dll 粘贴到下面 32位系统: 复 ...
- Java高级特性——注解,这也许是最简单易懂的文章了
最近,浪尖在做flink的项目时source和sink的绑定那块用到了注解,当然新版本1.6以后就变为server load的方式加载. 但是浪尖也是觉得很有毕业讲一下注解,毕竟高级免试也会问答的吧. ...
- express连接数据库 读取表
connection 连接数据库 connection.query 查询表 1.依赖 const mysql = require('mysql'); 连接数据库代码 var connecti ...
- UVA - 11181 Probability|Given (条件概率)
题意:有n个人,已知每个人买东西的概率,求在已知r个人买了东西的条件下每个人买东西的概率. 分析:二进制枚举个数为r的子集,按定义求即可. #include<cstdio> #includ ...
- js库链接
1.autoHeightTextarea自适应高度的textarea是一款jquery插件,支持链式调用,支持设置最小行数.最小高度.最大行数和最大高度,在输入文字的时候实现textarea的高度自适 ...
- Egret Engine 2D - 缩放模式和旋转模式说明
缩放模式和旋转模式说明 缩放模式showAll 常用 noScale noBorder exactFit 次常用 fixedWidth fixedHeight fixedNarrow fixedWid ...
- 【pwnable.kr】 mistake
又一道pwnable,我还没放弃.. ssh mistake@pwnable.kr -p2222 (pw:guest) 源代码如下: #include <stdio.h> #include ...
- DFS+BFS(广度优先搜索弥补深度优先搜索遍历漏洞求合格条件总数)--09--DFS+BFS--蓝桥杯剪邮票
题目描述 如下图, 有12张连在一起的12生肖的邮票.现在你要从中剪下5张来,要求必须是连着的.(仅仅连接一个角不算相连) 比如,下面两张图中,粉红色所示部分就是合格的剪取. 请你计算,一共有多少 ...
- 吴裕雄--天生自然TensorFlow2教程:张量排序
import tensorflow as tf a = tf.random.shuffle(tf.range(5)) a tf.sort(a, direction='DESCENDING') # 返回 ...
- 生成私钥、公钥,配置到Git上
ssh-keygen -t rsa -C "1032671220@qq.com" 输入完毕指令,输入密码.然后会在 /z/.ssh/文件夹下生成一个私钥rsa_id.公钥rsa_p ...