当前位置: 首页 > news >正文

响应式网站布局实例广州seo快速排名

响应式网站布局实例,广州seo快速排名,营口做网站的公司,网站备案 哪个省最松node-sass安装问题处理 1.问题2.处理2.1 方案一【我的环境失败】2.2 方案二【成功】2.3 方案三【成功】 1.问题 gyp verb which failed Error: not found: python2 # 1.添加Python27的安装路径到环境变量 gyp verb check python checking for Python executable "python…

node-sass安装问题处理

  • 1.问题
  • 2.处理
    • 2.1 方案一【我的环境失败】
    • 2.2 方案二【成功】
    • 2.3 方案三【成功】

1.问题

  • gyp verb which failed Error: not found: python2
# 1.添加Python27的安装路径到环境变量
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2# 2.未按照配置的环境变量找到python2
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python E:\anaconda3\envs\python.EXE

真实原因:

  • Cannot download “https://github.com/sass/node-sass/releases/download/version/x.node”
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/win32-x64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.14.1/win32-x64-83_binding.node"

2.处理

2.1 方案一【我的环境失败】

# npm设置国内地址
npm config set registry https://registry.npm.taobao.org/
npm config get registry

首先确认node的版本跟node-sass的版本是匹配的 https://github.com/sass/node-sass:

image.png

# 查询node版本
node -v# 查询结果
v14.17.0
{..."node-sass": "4.14.1","sass-loader": "8.0.2",...
}

解决方法,原文链接:https://blog.csdn.net/manonggeerdan/article/details/121260754:

# 1.删除工程的node_modules文件夹
# 2.以管理员身份打开dos窗口
# 3.安装node-gyp
npm install -g node-gyp
# 4.安装windows-build-tools
npm install --global --production windows-build-tools

这里可能出现的问题:
Visual Studio Build Tools一直处于“Still waiting for installer log file…”状态:

Status from the installers:
---------- Visual Studio Build Tools ----------
Still waiting for installer log file...
------------------- Python --------------------
Python 2.7.8 is already installed, not installing again.

【解决】不需要等待,直接ctrl+c停止,然后输入以下命令

npm install --global --production windows-build-tools --vs2015# 安装成功
Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!---------- Visual Studio Build Tools ----------
Successfully installed Visual Studio Build Tools.
------------------- Python --------------------
Python 2.7.8 is already installed, not installing again.Now configuring the Visual Studio Build Tools..All done!+ windows-build-tools@5.2.2
updated 1 package in 114.042s

然后再执行npm install

2.2 方案二【成功】

直接下载安装,复制报错信息里的地址:

Cannot download "https://github.com/sass/node-sass/releases/download/v4.14.1/win32-x64-83_binding.node"
# 使用腾讯的云服务器进行下载
wget https://github.com/sass/node-sass/releases/download/v4.14.1/win32-x64-83_binding.node

image.png
虽然很慢但是最终下载成功了!然后执行以下命令进行安装:

npm i node-sass@4.14.1 --sass_binary_site=E:\yuanzheng-codebase\code-gitee-open\open_ruoyi_activiti\ruoyi-deploy\ -D
  • -D 标志表示将 node-sass 安装为开发依赖项。

网盘文件分享:

链接:https://pan.baidu.com/s/1u72IgICc6EAlT4gAAr1gzg?pwd=bflf

2.3 方案三【成功】

npm i node-sass@4.14.1 --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ -D
http://www.hkea.cn/news/763487/

相关文章:

  • 做微信用什么网站广州百度seo代理
  • 网站建设目标 优帮云跨境电商营销推广
  • 郑州华恩科技做网站怎么样竞价排名适合百度吗
  • flask做大型网站开发深圳seo博客
  • 合肥网站建设平台小程序怎么引流推广
  • 做网站被拘留免费找客源软件
  • 门户型网站建设百度seo快速提升排名
  • 印度做杂质的网站如何进行网络推广
  • 建设厅八大员兴安盟新百度县seo快速排名
  • 南京网站建设索q.479185700小说排行榜百度
  • 幼儿做爰网站seo工程师是什么职业
  • 申请空间 建立网站吗西安百度推广运营
  • 做花馍网站百度联盟
  • 沈阳建设企业网站google浏览器官网
  • 毕业论文 网站开发营销qq下载
  • 建网站要多长时间外贸网站优化
  • 苹果网站做的好的点电脑培训网上免费课程
  • 做网站开源互联网优化是什么意思
  • 模仿做网站b站上海热点新闻
  • phpcmsv9网站地图地推的60种方法
  • 湖南手机版建站系统哪个好百度网盘app怎么打开链接
  • asp网站开发的实训报告电商营销推广有哪些?
  • 交互设计流程外贸网站优化公司
  • 网络营销网站策划个人网站seo入门
  • 云南省网站备案要求全渠道营销的概念
  • 装修网站合作平台有哪些torrentkitty磁力猫
  • 大理网站开发长春seo结算
  • 西双版纳疫情最新情况seo营销的概念
  • 网站推广seo蜘蛛屯优化排名模板建网站价格
  • 怎样建设公司网站小程序b2b网站大全免费