📌  相关文章
📜  在 npm install 的路径中设置 python2 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.796000             🧑  作者: Mango

代码示例1
If Python is installed using a package manager, it should already be on your path.
But if installed using 'msi/exe', then add "C:\Python27" to Environment-User-variable PATH (or the location where it is installed)
Node-gyp requires Python 2.x and cannot use Python 3.x

If path is required only at the specific directory, then try below:
npm config set python C:\Python27\python.exe