electron串口通信使用serialport安装报错
1.报错信息没有安装python环境
1 gyp ERR! find Python
2 gyp ERR! find Python Python is not set from command line or npm configuration
3 gyp ERR! find Python Python is not set from environment variable PYTHON
4 gyp ERR! find Python checking if "python" can be used
5 gyp ERR! find Python - "python" is not in PATH or produced an error
6 gyp ERR! find Python checking if "python2" can be used
7 gyp ERR! find Python - "python2" is not in PATH or produced an error
8 gyp ERR! find Python checking if "python3" can be used
9 gyp ERR! find Python - "python3" is not in PATH or produced an error
10 gyp ERR! find Python checking if the py launcher can be used to find Python 2
11 gyp ERR! find Python - "py.exe" is not in PATH or produced an error
12 gyp ERR! find Python checking if Python is C:\Python27\python.exe
13 gyp ERR! find Python - "C:\Python27\python.exe" could not be run
14 gyp ERR! find Python checking if Python is C:\Python37\python.exe
15 gyp ERR! find Python - "C:\Python37\python.exe" could not be run
16 gyp ERR! find Python
17 gyp ERR! find Python **********************************************************
18 gyp ERR! find Python You need to install the latest version of Python.
19 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
20 gyp ERR! find Python you can try one of the following options:
21 gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
22 gyp ERR! find Python (accepted by both node-gyp and npm)
23 gyp ERR! find Python - Set the environment variable PYTHON
24 gyp ERR! find Python - Set the npm configuration variable python:
25 gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
26 gyp ERR! find Python For more information consult the documentation at:
27 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
28 gyp ERR! find Python **********************************************************
29 gyp ERR! find Python
30 gyp ERR! configure error
31 gyp ERR! stack Error: Could not find any Python installation to use
32 gyp ERR! stack at PythonFinder.fail (D:\java\nvm\v12.16.2\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
33 gyp ERR! stack at PythonFinder.runChecks (D:\java\nvm\v12.16.2\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
34 gyp ERR! stack at PythonFinder.<anonymous> (D:\java\nvm\v12.16.2\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
35 gyp ERR! stack at PythonFinder.execFileCallback (D:\java\nvm\v12.16.2\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
36 gyp ERR! stack at exithandler (child_process.js:310:5)
37 gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5)
38 gyp ERR! stack at ChildProcess.emit (events.js:310:20)
39 gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
40 gyp ERR! stack at onErrorNT (internal/child_process.js:469:16)
41 gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
42 gyp ERR! System Windows_NT 6.1.7601
43 gyp ERR! command "D:\\java\\nodejs\\node.exe" "D:\\java\\nvm\\v12.16.2\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
44 gyp ERR! cwd D:\ideaWork\SpringBlade\Sword\node_modules\node-pty
45 gyp ERR! node -v v12.16.2
46 gyp ERR! node-gyp -v v5.1.0
47 gyp ERR! not ok
2.解决方案
方案一:下载python2.7 安装即可 (一定要2.7版本,版本过高会编译失败) 方案二:管理员权限打开执行:npm install --global --production windows-build-tools
(以管理员身份执行)
electron串口通信使用serialport安装报错的更多相关文章
- MSSQL 2012安装报错之0x858C001B
之前安装 Microsoft Sql Server 2012 R2 的时候总是报这样的错误: SQL Server Setup has encountered the following error: ...
- mydumper 安装报错处理
mydumper 官网:https://launchpad.net/mydumper 下载之后,安装报错: [root@localhost local]# cd mydumper-0.6.2 [roo ...
- linux -小记(2)问题:yum 安装报错"Another app is currently holding the yum lock; waiting for it to exit... ...: yum Memory : 26 M RSS (868 MB VSZ) Started: Wed Oct 26 22:48:24 2016 - 0"
yum 安装报错 "Another app is currently holding the yum lock; waiting for it to exit... The other ap ...
- office2010安装报错
有没有童鞋,在第一次安装office 2010的时候,中途不管是何原因导致中断或者未安装成功的 然后从第二次开始就一直安装报错??? 哈哈,我最近就遇到了 其他很简单,网上有很多方法,也有很多步骤,包 ...
- yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between
yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between attempted installs of php-pecl-f ...
- 关于eclipse(64位)下aptana插件安装报错问题解决
最近一直没有写过js,换了新电脑以后,eclipse下的aptana插件也没有装过,这几天要写js想重新把aptana装上,但是不知怎的,link方式.在线安装方式还有离线包下载下来利用eclipse ...
- 使用pip安装报错的处理方法
在新的机子上使用pip安装程序一直报错: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connect ...
- Python——pip安装报错:is not a supported wheel on this platform
pip安装报错:is not a supported wheel on this platform 可能的原因1:安装的不是对应python版本的库,下载的库名中cp35代表python3.5,其它同 ...
- Scrapy安装报错
python3 pip 安装Scrapy在win10 安装报错error: Microsoft Visual C++ 14.0 is required. Get it with "Micro ...
随机推荐
- ORACLE中dual用法详解
基本上oracle引入dual为的就是符合语法1. 我们先从名称来说,dual不是缩写词,本身就是完整的单词.dual名词意思是对数,做形容词时是指二重的,二元的.2. Oracle中的dual表是一 ...
- c学习 - 第五章:选择结构程序设计
5.2 关系运算符与逻辑运算符 !(非) ^ 高 算术运算符 | 关系运算符 | &&和 || | 赋值运算符 | 低
- nodejs代码初探之nodejs启动
nodejs启动 入口在node_main.cc,解析参数后进入node.cc 中的node::Start() V8::Initialize() //初始化v8SetupProcessObject() ...
- 实现nfs持久挂载+autofs自动挂载
实验环境: 两台主机 node4:192.168.37.44 NFS服务器 node2:192.168.37.22 客户端 在nfs服务器,先安装nfs和rpcbind [root@node4 fen ...
- AJAX - Http 中 post 和 get 的区别
HTTP: post 和 get 是 HTTP 协议中的两种方法.浏览器和服务器的交互是通过 HTTP 协议执行的,他的全称为Hyper Text Transfer Protocol(超文本传输协议) ...
- 【JS】枚举类型
https://zhuanlan.zhihu.com/p/79137838 相当于用数字来代替一串字母 /** * 时间:2019年8月18日 * 前端教程: https://www.pipipi.n ...
- Pagination.js + Sqlite web系统分页
前端使用 jquery pagination.js 插件. 环境准备:jquery.js.pagination.js.pagination.css 附件下载:https://files.cnblogs ...
- python爬取实习僧招聘信息字体反爬
参考博客:http://www.cnblogs.com/eastonliu/p/9925652.html 实习僧招聘的网站采用了字体反爬,在页面上显示正常,查看源码关键信息乱码,如下图所示: 查看网页 ...
- Python基础入门(5)- 函数的定义与使用
定义函数 函数的定义 函数的分类 函数的创建方法 函数的返回return 函数的定义 将一件事情的步骤封装在一起并得到最终结果 函数名代表了这个函数要做的事情 函数体是实现函数功能的流程 函数可以帮助 ...
- Redis5.0.8 Cluster集群部署
目录 一.Redis Cluster简介 二.部署 三.创建主库 一.Redis Cluster简介 Redis Cluster集群是一种去中心化的高可用服务,其内置的sentinel功能可以提供高可 ...