rainbond
rainbond copied to clipboard
nodejs的源码编译环境中没有 python 环境
Error: Could not find any Python installation to use

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
为什么要在nodejs源码构建中需要使用python呢?
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?
解决方案:需要在 package.json 文件 scripts 中添加 "preinstall": "apt update && apt install -y python2 g++"