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

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

    My answer might not apply to everyone. Node version: v10.16.0 NPM: 6.9.0

    I was having a lot of trouble using node-sass and node-sass-middleware. They are interesting packages because they are widely used (millions of downloads weekly), but their githubs show a limited dependencies and coverage. I was updating an older platform I'd been working on.

    What I ended up having to do was:

    1) Manually Delete node_modules

    2) Manually Delete package-lock.json

    3) sudo npm install node-sass --unsafe-perm=true --allow-root

    4) sudo npm install node-sass-middleware --unsafe-perm=true --allow-root

    I had the following help, thanks!

    Pre-built binaries not found for grpc@1.10.1 and node@10.9.0

    Error: EACCES: permission denied when trying to install ESLint using npm

提交回复
热议问题