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

哈尔滨搭建网站文创产品设计理念

哈尔滨搭建网站,文创产品设计理念,关键词推广营销,深圳人社局官网登录入口环境:Windows 11 npm安装electron 最近研究electron时,使用npm或者yarn安装electron时,总是安装失败。 后来在使用electron-vite构建项目时,发现构建完后,根目录下有一个文件.npmrc。配置如下: 如果你不是…

环境:Windows 11

npm安装electron

最近研究electron时,使用npm或者yarn安装electron时,总是安装失败。
后来在使用electron-vite构建项目时,发现构建完后,根目录下有一个文件.npmrc。配置如下:
在这里插入图片描述
如果你不是通过electron-vite构建项目,只是想通过npm或者yarn安装electron,可以在项目根目录下创建该文件,并配置上图配置,再通过npm安装,就可以顺利安装。

electron_mirror=https://npmmirror.com/mirrors/electron/
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/

npm安装better-sqlite3

安装better-sqlite3时,各种报错,提示预编译失败,缺少相关环境。报错如下:

error E:\Electron\electron-app\node_modules\better-sqlite3: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild --release
Arguments:
Directory: E:\Electron\electron-app\node_modules\better-sqlite3
Output:
prebuild-install warn install Request timed outE:\Electron\electron-app\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "D:\software\........\node-gyp.js" rebuild --release )  else (node "" rebuild --release )
gyp info it worked if it ends with ok
gyp info using node-gyp@11....
gyp info using node@22... | win32 | x64
gyp info find Python using Python version 3.13.7 found at "C:\Users\....\python.exe"gyp http GET https://nodejs.org/download/release/v22.18.0/node-v22.18.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v22.18.0/node-v22.18.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v22.18.0/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v22.18.0/win-x64/node.lib
gyp http 200 https://nodejs.org/download/release/v22.18.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v22.18.0/win-x64/node.lib
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details.
gyp ERR! find VS
gyp ERR! find VS Failure details: undefined
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details.
gyp ERR! find VS
gyp ERR! find VS Failure details: undefined
gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21
gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21
gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21
gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
.............
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

我按照提示安装了python,并配置环境变量后,依然报错。可能与是否安装了python并没有关系。
后来按照提示还安装了:Visual Studio 2022(这里不是vscode,安装过程中只选择C++桌面开发,这玩意儿太大了,不用装的都取消选择。)
此时再使用npm或yarn安装better-sqlite3,才安装成功。
AI还给了另一种安装方式使用预编译二进制包,未进行尝试。

http://www.dtcms.com/a/590998.html

相关文章:

  • 网站建设 业务走下坡抖音推广有几种方式
  • 购物网站建设需要公司营业执照吗无锡网络公司有哪些
  • RAFT微调学习笔记
  • 网站开发制作公司排行网站建设专业学什么
  • 江苏网站建设怎么样php网站的数据库怎么做备份
  • 做非法网站判什么邢看那种片哪个网站好用
  • 中专生做电商客服,能转电商运营吗?需要学习什么?
  • 高端网站设计找哪个公司wordpress 课程
  • 泉州网站制作平台网站建设简历
  • 个人注册网站只做正品的购物网站
  • 烟台专业的网站建站公司厦门市建设协会网站首页
  • 怎样做jsp网站百度seo入驻
  • 广州市城乡建设信息中心网站临沂建设网站制作公司
  • 爬豆瓣喜剧电影排行榜数据
  • 聚美优品网站建设情况网站信息组织优化
  • 多个网站备案负责人wordpress 个人资料页
  • 动易学校网站管理系统 漏洞网站建设分工的通知
  • 做条形图的网站免费网站下载app软件免费
  • 移动公司营销网站设计邯郸市人社局
  • 做外账经常进哪几个网站中小企业网站设计与开发目的
  • 新农村建设投诉网站中英文的网站是怎么做的
  • 探秘Linux进程“亡灵”:僵尸进程(Zombie Process)深度解析
  • 局域网视频网站搭建折扣网站模板
  • FOC控制与SVPWM解析
  • 门户网站建设技术要求网络推广方案书模板
  • 淄博建设局网站做网站千篇一律
  • 如何用matlab求圆的圆心及半径
  • 做软件界面的网站织梦网站上传的文章只显示摘要不显示内容如何修改
  • 怎么把网站管理系统自适应单页网站模板
  • 模板网免费下载官网seo排名诊断