npm - “Can't find Python executable ”python“, you can set the PYTHON env variable.”

后端 未结 8 1793
夕颜
夕颜 2021-02-02 07:04

I\'m trying to run the following command: npm install -g bower gulp cordova ionic tsd@next karma-cli protractor node-gyp coffee-script js-beautify typescript npm-check

8条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 07:22

    You are running the Command Prompt as an admin. You have only defined PYTHON for your user. You need to define it in the bottom "System variables" section.

    Also, you should only point the variable to the folder, not directly to the executable.

提交回复
热议问题