gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

NPM 错误收集及解决方法

出现上面图中问题,解决办法,打开终端(管理员模式),输入下面的内容:

安装node-sass

npm install node-sass --save-dev

安装完成后继续执行下面的命令:

npm install --global --production windows-build-tools

否则会提示:

Please restart thie script from a administrative PowerShell!
再输入:

npm install --global node-gyp

 

相关文章:

  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2022-01-06
猜你喜欢
  • 2022-12-23
  • 2021-05-16
  • 2021-08-30
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案