简体   繁体   中英

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. After successful installation of python it worked. My question is why we need python to install a node 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.

You can read more abbout that on the official Node.js's dependencies documentation: https://nodejs.org/en/docs/meta/topics/dependencies/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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