问题描述
当我尝试安装gulp-converter-tjs时出现以下错误
I am getting the following error when I attempt to install gulp-converter-tjs
使用 npm install -g gulp-converter-tjs
似乎我缺少python,但是python.exe的路径正确.我什至可以从cmd运行python命令,还可以设置环境变量.有什么建议吗?
It looks like I am missing python but the path is correct for python.exe . I can even run python command from my cmd and also enviroment variables are set.Any suggestions?
npm ERR!可以在以下位置找到此运行的完整日志:npm ERR! C:\ Users \ themhz \ AppData \ Roaming \ npm-cache_logs \ 2017-11-25T15_20_09_146Z-debug.log
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\themhz\AppData\Roaming\npm-cache_logs\2017-11-25T15_20_09_146Z-debug.log
我的机器正在运行窗户10npm -v 5.5.1节点-v v8.9.1Python3
My machine is runningwindows 10npm -v 5.5.1node -v v8.9.1Python3
推荐答案
对于以后遇到此问题的人,您可以节省一些时间,并让npm通过运行以下命令安装所有必需的程序:
For those who encounter this problem in future, you can save yourself some time and let npm install all necessary programs by running:
npm install --global --production windows-build-tools
注意:您需要以管理员身份运行此命令
Note: you need to run this command as administrator
这篇关于安装gulp-converter-tjs时找不到Python可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!