npm install fails #5

Open
opened 2026-03-18 08:54:00 +00:00 by rosano · 1 comment

I'm guessing this is probably my mac or old dependencies but curious if you had some hints. Seems like node-sass might be looking for python or python2 on my system?

5997 error npm error Building: /usr/local/bin/node /Users/r/.npm/_cacache/tmp/git-cloneLK6uQo/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
5997 error npm error gyp verb `which` failed Error: not found: python2
5997 error npm error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
I'm guessing this is probably my mac or old dependencies but curious if you had some hints. Seems like `node-sass` might be looking for python or python2 on my system? ``` 5997 error npm error Building: /usr/local/bin/node /Users/r/.npm/_cacache/tmp/git-cloneLK6uQo/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= ``` ``` 5997 error npm error gyp verb `which` failed Error: not found: python2 ``` ``` 5997 error npm error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. ```
Owner

Yeah, I haven't updated the code and its dependencies for years. I would try with node.js 12 or 14 probably. If node-sass needs python, then you can install that, of course.

Yeah, I haven't updated the code and its dependencies for years. I would try with node.js 12 or 14 probably. If node-sass needs python, then you can install that, of course.
raucao added the dev environment label 2026-03-18 08:56:58 +00:00
Sign in to join this conversation.