【异常】前端ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.

一、报错内容

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

二、报错原因

本地因无python 环境,

三、报错解决

需要使用cnpm install ,先安装python的环境

参考链接:

  • https://www.cnblogs.com/telwanggs/p/10974846.html

核心如下:

 cnpm install --python=python2.7
 cnpm config set python python2.7

最后整个install 下来了,见截图

【异常】前端ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable._第1张图片

你可能感兴趣的:(007,-,大前端技术,python,开发语言,npm)