错误原因:Node.js 在安装模块的时候报错,缺少python环境。

解决办法:

第一种方式:

安装Python及环境变量配置,一定要安装python2.7的版本,配置python环境变量的方法请自己查询;

如果第一种方式不行,可以试试第二种。

第二种方式:

运行下面的代码:

npm install --global --production windows-build-tools

结果如下:

解决Error: Can't find Python executable python, you can set the PYTHON env variable相关推荐

  1. 【GIT】error: failed to push some refs to 'https://github.com/username/python.git'

    error: failed to push some refs to 'https://github.com/username/python.git' 解决error: failed to push ...

  2. python版本管理工具_使用 Python 官方工具在 windows 上管理 Python 多版本

    0. 使用官方工具 网上很多教程还在用修改Python.exe文件名的方式来进行多版本的管理,其实Python官方在3.3已经有了一个官方的工具,使用起来也很方便. 1. 下载 2.x 和 3.x(3 ...

  3. Ubuntu中Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.

    Ubuntu中在用npm install 时报错 gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed i ...

  4. gyp ERR! stack Error: Can't find Python executable 'python'

    gyp ERR! stack Error: Can't find Python executable 'python' 系统: Win10 Gatsby使用一个Starter[1]进行npm inst ...

  5. npm i安装包依赖时 gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env

    报错内容 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! st ...

  6. gyp ERR! stack Error: Can't find Python executable python, you can set the PYTHON env variable.

    gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env va ...

  7. 成功解决Fatal error in launcher: Unable to create process using ‘“f:\program files\python\python36\pytho

    成功解决Fatal error in launcher: Unable to create process using '"f:\program files\python\python36\ ...

  8. ERR! configure error gyp ERR! stack Error: Can't find Python executable python

    Node.js 在安装模块的时候报错,缺少python环境. ERR! configure error gyp ERR! stack Error: Can't find Python executab ...

  9. 完美解决ERROR: Command errored out with exit status 1: command: ‘f:\program files\python\python36\pyt

    完美解决ERROR: Command errored out with exit status 1: command: 'f:\program files\python\python36\pyt 文章 ...

  10. Error running docker container: starting container process caused “exec: \“python\“: executable file

    问题:miniconda3虚拟环境创建python环境,使用下面Dockerfile编译docker镜像 FROM cuda10.2_pt1.5:09061 COPY . /workspace WOR ...

最新文章

  1. android+无触摸操作,如何在Android中模拟触摸事件?
  2. 亚马逊生鲜的产品质疑!国外设计师怎么分析用户体验(中英图文对照版)
  3. C#面向对象(一):明确几个简单的概念作为开胃菜
  4. Android ProgressBar 反向进度条/进度条从右到左走
  5. vivado不识别HLS生成的IP解决方法
  6. mysql 前端proxy_mysql-proxy中间件使用
  7. 苹果备忘录怎么调字体大小_苹果手机的备忘录怎么恢复?不知道的快来看看
  8. epoll原理_彻底搞懂epoll高效运行的原理
  9. 网络安全问题及防护措施有哪些
  10. Java基础编程题:倒序输出九九乘法表
  11. 快速批量重命名文件(夹)
  12. Java12之switch升级语法在Eclipse中的穿透问题
  13. Unity3D 《拥挤城市》3D房子建筑透视效果实
  14. Win10中启动或关闭Windows功能中没有SNMP服务的解决办法
  15. C语言到底有多强大?
  16. c++上三角矩阵求和
  17. HA 高可用软件系统保养指南
  18. 干货 | LIDAR、ToF相机、双目相机如何科学选择?
  19. web 2.0 的一些说明
  20. 童年记忆中的街机游戏

热门文章

  1. 非要自己开发一个测试工具不可
  2. Python自动化运维_批量执行py脚本
  3. vue项目中出现cannot get/的解决办法
  4. 【转】和菜鸟一起学linux之DBUS基础学习记录
  5. 年度研发项目情况项目目标文档
  6. 【FFMEPG】windows下编译ffmpeg2.5——使用VS2013,ARMLINUX,ANDORID编译ffmpeg
  7. 如何借助ArrayAdapter和Spinner实现下拉列表
  8. Druid(数据库连接池)和JdbcTemplate(封装JDBC)使用
  9. std::tuple 和 std::tie 的用法简介
  10. MySQL 判断表中是否存在某条数据