简体   繁体   English

为什么有时节点 package 安装会抛出 python 未找到错误?

[英]Why sometime node package installation throws python not found error?

I am bit new to Node.js. Sometime back when I was installing a node package It threw a runtime error said python not found or something like that.我对 Node.js 有点陌生。有一次我安装节点 package 时它抛出了一个运行时错误,说 python 未找到或类似的东西。 After successful installation of python it worked.成功安装 python 后,它工作了。 My question is why we need python to install a node package?我的问题是为什么我们需要 python 来安装节点 package? Can anyone explain谁能解释一下

One of the dependencies of Node.js is GYP ( https://gyp.gsrc.io/docs/UserDocumentation.md ) which is written in Python. Node.js 的依赖之一是 GYP( https://gyp.gsrc.io/docs/UserDocumentation.md ),写在 Python 中。

You can read more abbout that on the official Node.js's dependencies documentation: https://nodejs.org/en/docs/meta/topics/dependencies/您可以在官方 Node.js 的依赖项文档中阅读更多内容: https://nodejs.org/en/docs/meta/topics/dependencies/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM