-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-sass 下载失败 解决方案 #24
Comments
这和该项目无关。。。node-sass普遍就是下载有问题 //建议不要用cnpm 安装有各种诡异的bug 可以通过如下操作解决npm速度慢的问题 感谢提供了解决方案 |
我项目一般都用yarn。全局用npm |
试过上面方法还不行的同学 ,可以把package.json中的node-scss依赖改为:"node-sass": "^4.5.0", |
npm install --registry=https://registry.npm.taobao.org执行的时候, |
我补充一下楼上的,下载python一定要记得是2.X版本的,不然也会一直提示找不到 |
翻一下墙用npm安装就好了 |
安装Python3,提示找不到 2 ,安装Python 2 后报 node-sass 错误,我的解决办法: |
還是安裝不了 |
第一,我可以 查看到 node-sass 的版本号 是4.10.0 生成失败。 MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "4.0"。
已用时间 00:00:00.50 npm ERR! code ELIFECYCLE |
问题解决了,是git版本的问题,重新安装非release版本2.20即可 |
我也遇到这个问题,虽然我配置了全局的淘宝镜像,不过还是按照作者的配置项重新安装了下,然后就莫名其妙的好了。 命令行显示如下语句后,开始正确地下载包了: $ npm install --registry=https://registry.npm.taobao.org
npm WARN deprecated bfj-node4@5.3.1: Switch to the `bfj` package for fixes and n ew features!
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@n pmjs.com for more info.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, fl atted is its successor.
> husky@0.14.3 install C:\Users\Administrator\Desktop\后台管理\vue-element-admin \node_modules\husky
> node ./bin/install.js
husky
setting up Git hooks
done |
大佬,能给个链接吗?我试过装好多个版本的git,都不行啊。。 |
安装失败的原因是node-sass下载的地址不对, 安装时指定镜像源 |
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass |
参照上面方案,已经解决问题,我是通过 |
配置了.npmrc之后还是不行,在 |
圈友们大家好,我也遇到了这个问题,我参考了大家上面提出的解决办法,发现这个是可以的: 首先,执行git update-git-for-windows 更新一下git版本。 我的就好了。 |
如果提示error setting certificate verify locations, |
建议也可以试试 在安装项目依赖的时候 |
我网上找到一个解决办法 |
我也遇到了,我的node是16 node-sass是7 npm是8 |
經過一早上的研究, |
朋友,你好。请问你的NodeJS版本是多少呀? |
一直下载报错 |
项目 npm run dev 启动不了是怎么回事呢 |
npm ERR! code ELIFECYCLE 怎么也不好使啊 |
Error while executing: 在终端使用: git config --global http.sslVerify "false" |
|
在国内搞了两天搞不定,出国后,直接npm install完美运行了。。。。。。 |
npm ERR! Error while executing: npm ERR! A complete log of this run can be found in: 出现这个问题怎么弄啊 |
项目无法启动的问题解决方案:node19 版本过高,需要降低版本,我降到了17.9.1 再按照 之前的 |
大佬 有答案了吗 |
重新设置一下ssh key就好了 |
npm ERR! code 128 npm ERR! A complete log of this run can be found in: |
我这里是windows |
Mac M1 ,用 v14.17.5 一直不行,最后,升级到 node v14.21.3 (npm v6.14.18) 就解决了 0.0 |
找到一篇文章 按照文章的版本就可以成功:https://blog.csdn.net/lwj_07/article/details/127845777 |
这边调整npm 版本为 12.13.1 就行了 |
https://blog.csdn.net/zhu7478848/article/details/128642538 按照这个版本对照,查看package.json里的 "node-sass": "^4.9.0", 下载node10 版本安装,然后删除 node_modules 和 package-lock.json 文件,然后重新下载 npm i 问题解决 |
问题大都遇了个遍,稍微整理下自己遇到的2个问题 解决:配置ssh密钥即可(详见转载:https://www.cnblogs.com/cenima/p/17863883.html 2.首先看下自己的版本是否过高,我是16,跟楼上一个老哥是一样的,但是需要补充 :--legacy-peer-deps |
下载项目的时候run install时,node-sass下载失败后来我在项目根目录下添加了一个.npmrc
把node-sass的路径修改成淘宝的npm,就很顺利的可以在国内的网络环境下载了
The text was updated successfully, but these errors were encountered: