Node.js: Python not found exception due to node-sass and node-gyp

前端 未结 12 1367
余生分开走
余生分开走 2020-12-04 15:22

Suddenly in one of my jenkins environment build has started failing, while in local machine it seems to be working fine as i have python installed,

From the logs i w

12条回答
  •  感动是毒
    2020-12-04 15:53

    so this happened to me on windows recently. I fix it by following the following steps using a PowerShell with admin privileges:

    1. delete node_modulesfolder
    2. running npm install --global windows-build-tools
    3. reinstalling node modules or node-sass with npm install

提交回复
热议问题