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 ...
随机推荐
- promise.all的应用场景举例
Promise.all方法 简而言之:Promise.all( ).then( )适用于处理多个异步任务,且所有的异步任务都得到结果时的情况. 比如:用户点击按钮,会弹出一个弹出对话框,对话框中有两部 ...
- 分配器——allocators
任何容器的构建都离不开分配器,分配器顾名思义就是分割配置内存资源的组件,分配器的效率直接影响力容器的效率. operator new()和malloc() C/C++底层都是通过malloc()调用系 ...
- ListView的item不能点击(焦点冲突问题)
一般这种问题就是item里面有checkbox或button之类抢占焦点的控件,解决方案有2种: 第一种:就是在checkbox或button添加android:focusable="fal ...
- vueAPI (data,props,methods,watch,computed,template,render)
data Vue 实例的数据对象.Vue 将会递归将 data 的属性转换为 getter/setter,从而让 data 的属性能够响应数据变化.实例创建之后,可以通过vm.$data来访问原始数据 ...
- 动态规划系列(零)—— 动态规划(Dynamic Programming)总结
动态规划三要素:重叠⼦问题.最优⼦结构.状态转移⽅程. 动态规划的三个需要明确的点就是「状态」「选择」和「base case」,对应着回溯算法中走过的「路径」,当前的「选择列表」和「结束条件」. 某种 ...
- java基础---局部变量和全局变量
1.成员变量的概念: 成员变量就是属于类的变量,在类中,方法体外定义的变量 1)成员变量又分为两种: 类变量(又称静态变量) 实例变量(又称非静态变量) 类变量(静态变量) :是被static所修 ...
- 位置式PID讲解
table { margin: auto } 一.公式拆解 \(PID\)公式展示: \[u(t)=K_p(e(t)+\frac{1}{T_t } ∫_0^te(t)dt+T_D \frac {de( ...
- CF363A Soroban 题解
Content 给出一个数 \(n\),请你用算盘来表示 \(n\). 这里的算盘和普通的算盘一样,只不过竖着摆放罢了.左边只有一个珠子,每个珠子表示 \(5\):右边有四个珠子,每个珠子表示 \(1 ...
- CF134A Average Numbers 题解
Content 有 \(n\) 个数 \(a_1,a_2,a_3,...,a_n\).试求出使得 \(a_i\) 与其他所有整数的算术平均值相等的所有 \(i\). 数据范围:\(2\leqslant ...
- CF60A Where Are My Flakes? 题解
Content 有人发现他的麦片不见了,原来是室友把它藏在了 \(n\) 个盒子中的一个,另外还有 \(m\) 个提示,有两种: \(\texttt{To the left of }x\):麦片在第 ...