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. Netty之ByteBuf

    本文内容主要参考<<Netty In Action>>,偏笔记向. 网络编程中,字节缓冲区是一个比较基本的组件.Java NIO提供了ByteBuffer,但是使用过的都知道B ...

  2. 【leetcode】122.Best Time to Buy and Sell Stock II(股票问题)

    You are given an integer array prices where prices[i] is the price of a given stock on the ith day. ...

  3. GO Exit Fatal panic

    Exit() 应用程序(不只是函数)退出执行 defer 不会被执行(因为程序都退出了) log.Fatal() 输出打印内容 应用程序退出 defer 不会被执行 panic() 函数停止执行(不是 ...

  4. delete() and free() in C++

    In C++, delete operator should only be used either for the pointers pointing to the memory allocated ...

  5. java标识接口

    标识接口是没有任何方法和属性的接口,标识接口不对实现类有任何语义上的要求,仅仅表明它的实现类属于一个特定的类型.它非常类似于Web 2.0中的TAG的概念,Java使用它标识某一类对象.主要有两个用途 ...

  6. win10安装两台mysql-5.7.31实例

    1. 下载 mysql5.7.31 压缩包: (1)百度云下载: 链接:https://pan.baidu.com/s/1jgxfvIYzg8B8ahxU9pF6lg 提取码:fiid (2)官网下载 ...

  7. 【spring AOP】AspectJProxyFactory

    AspectJProxyFactory,可能大家对这个比较陌生,但是@Aspect这个注解大家应该很熟悉吧,通过这个注解在spring环境中实现aop特别的方便. 而AspectJProxyFacto ...

  8. Spring MVC与html页面的交互(以传递json数据为例)

    一.导入相jar包 主要包括spring相关jar包和fastjson jar包,具体步骤略. 二.配置相关文件 1.配置web.xml文件 <?xml version="1.0&qu ...

  9. uniapp实现钉钉扫码登录

    由于uniapp暂无钉钉授权登录所以本文将钉钉扫码登录作为网页嵌入uniapp,最终实现钉钉扫码登录app 1. 用H5调起钉钉扫码登录 钉钉在网页端的扫码登录可参考钉钉文档:扫码登录第三方网站 - ...

  10. Nginx 架构基础

    1 Nginx请求处理流程 2 Nginx进程结构 3 Nginx进程管理:信号 3.1 Master进程 监控worker进程 CHLD 管理worker进程 接收信号 TERM,INT QUIT ...