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

vue中安装node-sass

npm  install node-sass --save-dev
  • 1

出现上面图中问题

解决办法:

vscode里,打开终端,输入下面的内容

先输入(在管理员模式下打开)

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

否则会提示:

Please restart thie script from a administrative PowerShell!
  • 1

再输入

npm install --global node-gyp
相关文章
|
9月前
|
存储 JavaScript Java
(Python基础)新时代语言!一起学习Python吧!(四):dict字典和set类型;切片类型、列表生成式;map和reduce迭代器;filter过滤函数、sorted排序函数;lambda函数
dict字典 Python内置了字典:dict的支持,dict全称dictionary,在其他语言中也称为map,使用键-值(key-value)存储,具有极快的查找速度。 我们可以通过声明JS对象一样的方式声明dict
499 2
|
存储 Python
Python多个set中的交集
Python多个set中的交集
533 1
|
索引 Python 容器
为什么Python中会有集合set类型?
为什么Python中会有集合set类型?
327 4
|
Python
python中set和frozenset方法和区别
python中set和frozenset方法和区别
|
并行计算 Python
Python错误笔记(一):CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up env
这篇文章讨论了CUDA初始化时出现的未知错误及其解决方案,包括重启系统和安装nvidia-modprobe。
2152 0
|
Python Windows
Python:执行py命令,提示: Can‘t find a default Python.
Python:执行py命令,提示: Can‘t find a default Python.
|
存储 数据处理 Python
Python中的Set集合:高效数据处理的利器
Python中的Set集合:高效数据处理的利器
439 0
Python 代码从 `.env` 文件中读取环境变量
这篇文章介绍了如何在Python项目中使用`python-dotenv`库从`.env`文件读取环境变量的详细步骤,包括安装库、创建`.env`文件、在代码中加载和读取环境变量。
|
测试技术 索引 Python
Python接口自动化测试框架(基础篇)-- 常用数据类型list&set()
本文介绍了Python中list和set两种数据类型的使用,包括它们的创建、取值、增删改查操作、排序以及内置函数的使用,还探讨了list的比较函数和set的快速去重功能。
465 0
|
存储 缓存 JavaScript
Set和Map有什么区别?
Set和Map有什么区别?
731 1

推荐镜像

更多