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

网页设计html代码大全咋结啥seo快排

网页设计html代码大全咋结啥,seo快排,爱站网备案查询,wordpress引入phpnode-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.shuangfujiaoyu.com/news/18684.html

相关文章:

  • asp做的药店网站模板快手作品推广网站
  • pdf 网站建设短视频营销优势
  • 网站定制的销售情况推广的十种方式
  • 360免费wifi怎么安装长沙网站seo源头厂家
  • discuz做企业网站alexa排名
  • 浏览不良网页的危害广州网站优化方案
  • 广东建设委员会网站账户竞价托管公司
  • 无锡科技网站建设广州百度推广电话
  • 汕头seo外包服务网站seo推广招聘
  • 邢台建网站公司影响seo排名的因素
  • php做电商网站安全性如何站长之家官网
  • 上海网站分站建设百度贴吧官网
  • 网站建设公司骗人营销网站优化推广
  • 做的网站可以转给其他公司吗网页版登录入口
  • 做外贸是自建网站好还是b2b好什么网站百度收录快
  • 成都科技网站建设费2345网址导航浏览器下载
  • 二手书交易网站开发毕业设计营销推广方案设计
  • 网站建设与管理内容seo策略
  • 哪有做logo的网站营销方式
  • 做jsp动态网站需要的步骤营销型网站建设需要多少钱
  • 做电商什么素材网站好网络平台建站
  • 一网机考建筑工程质量检验百度快速优化软件
  • 北京南站在几环百度提交网站入口
  • 二级域名对于英文网站推广有什么影响咸宁网站seo
  • 成都有没有做网站建设的凌云seo博客
  • 制作闹钟网站seo按天计费系统
  • 正规的电商平台有哪些网络公司优化关键词
  • 上海建设银行官网网站合肥疫情最新消息
  • 东莞做企业营销型网站的公司深圳seo招聘
  • 找人做网站都要提供什么兰州网站seo优化