How can I check which specific npm package is causing the 'npm install failed error not found python2' error?

Question

Grade: Education Subject: Support
How can I check which specific npm package is causing the 'npm install failed error not found python2' error?
Asked by:
109 Viewed 109 Answers

Answer (109)

Best Answer
(268)
When `npm install` fails, it usually prints out the build logs from the package that encountered the error. Carefully examine the output, especially the lines just before the failure message. This will often point to the specific package that's trying to use Python 2.