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安装报错的更多相关文章

  1. MSSQL 2012安装报错之0x858C001B

    之前安装 Microsoft Sql Server 2012 R2 的时候总是报这样的错误: SQL Server Setup has encountered the following error: ...

  2. mydumper 安装报错处理

    mydumper 官网:https://launchpad.net/mydumper 下载之后,安装报错: [root@localhost local]# cd mydumper-0.6.2 [roo ...

  3. 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 ...

  4. office2010安装报错

    有没有童鞋,在第一次安装office 2010的时候,中途不管是何原因导致中断或者未安装成功的 然后从第二次开始就一直安装报错??? 哈哈,我最近就遇到了 其他很简单,网上有很多方法,也有很多步骤,包 ...

  5. 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 ...

  6. 关于eclipse(64位)下aptana插件安装报错问题解决

    最近一直没有写过js,换了新电脑以后,eclipse下的aptana插件也没有装过,这几天要写js想重新把aptana装上,但是不知怎的,link方式.在线安装方式还有离线包下载下来利用eclipse ...

  7. 使用pip安装报错的处理方法

    在新的机子上使用pip安装程序一直报错: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connect ...

  8. Python——pip安装报错:is not a supported wheel on this platform

    pip安装报错:is not a supported wheel on this platform 可能的原因1:安装的不是对应python版本的库,下载的库名中cp35代表python3.5,其它同 ...

  9. Scrapy安装报错

    python3 pip 安装Scrapy在win10 安装报错error: Microsoft Visual C++ 14.0 is required. Get it with "Micro ...

随机推荐

  1. day02 Linux基础

    day02 Linux基础 1.什么是服务器 服务器,也称伺服器,是提供计算服务的设备.由于服务器需要响应服务请求,并进行处理,因 此一般来说服务器应具备承担服务并且保障服务的能力. windows: ...

  2. Linux_spool命令

    spool的作用是什么? spool的作用可以用一句话来描述:在sqlplus中用来保存或打印查询结果. 参数指南 对于SPOOL数据的SQL,最好要自己定义格式,以方便程序直接导入,SQL语句如: ...

  3. OSGI 生命周期

    1 生命周期管理 对于非模块化应用,生命周期将应用作为一个整体来操作: 而对于模块化应用,则可以以细粒度的方式来管理应用的某一个独立部分. OSGi生命周期管理 OSGi生命周期层有两种不同的作用: ...

  4. django搭建示例-ubantu环境

    python3安装--------------------------------------------------------------------------- 最新的django依赖pyth ...

  5. 【Service】【Database】【MySQL】基础概念

    1. 数据模型:层次模型.网状模型.关系模型 关系模型: 二维关系: 表:row, column 索引:index 视图:view 2. SQL接口:Structured Query Language ...

  6. 【Linux】【Shell】【text】Vim

    文本编辑器: 文本:纯文本,ASCII text:Unicode: 文本编辑种类: 行编辑器:sed 全屏编辑器:nano, vi vi: Visual Interface vim: Vi IMpro ...

  7. FindUserByPageServlet

    package com.hopetesting.web.servlet;import com.hopetesting.domain.PageBean;import com.hopetesting.do ...

  8. request.getRequestDispatcher()和response.sendRedirect()区别

    一.request.getRequestDispatcher().forward(request,response): 1.属于转发,也是服务器跳转,相当于方法调用,在执行当前文件的过程中转向执行目标 ...

  9. 机器学习算法中的评价指标(准确率、召回率、F值、ROC、AUC等)

    参考链接:https://www.cnblogs.com/Zhi-Z/p/8728168.html 具体更详细的可以查阅周志华的西瓜书第二章,写的非常详细~ 一.机器学习性能评估指标 1.准确率(Ac ...

  10. C# 枚举的flags 标志位应用

    枚举有个特性叫标志位,使用方法如下 [Flags] enum Foo { a =1, b = 2, c = 4, d = 8 } 每个值需要为2的n次方,保证多个值的组合不会重复. 这样在判断其中一个 ...