rainbond icon indicating copy to clipboard operation
rainbond copied to clipboard

nodejs的源码编译环境中没有 python 环境

Open csa8280 opened this issue 2 years ago • 4 comments

Error: Could not find any Python installation to use

image

csa8280 avatar Nov 18 '22 10:11 csa8280

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: No python environment in the source code compilation environment of nodejs

Issues-translate-bot avatar Nov 18 '22 10:11 Issues-translate-bot

为什么要在nodejs源码构建中需要使用python呢?

DokiDoki1103 avatar Aug 27 '23 12:08 DokiDoki1103

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Why do you need to use python in the nodejs source code build?

Issues-translate-bot avatar Aug 27 '23 12:08 Issues-translate-bot

解决方案:需要在 package.json 文件 scripts 中添加 "preinstall": "apt update && apt install -y python2 g++"

RainBondsongyg avatar Jan 04 '24 11:01 RainBondsongyg