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

前端 未结 12 1336
余生分开走
余生分开走 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:34

    I had to:

    Delete node_modules
    Uninstall/reinstall node
    npm install node-sass@4.12.0
    

    worked fine after forcing it to the right sass version, according to the version said to be working with the right node.

    NodeJS  Minimum node-sass version   Node Module
    Node 12 4.12+   72
    Node 11 4.10+   67
    Node 10 4.9+    64
    Node 8  4.5.3+  57
    

    There was lots of other errors that seemed to be caused by the wrong sass version defined.

提交回复
热议问题