Sublime Forum

Issue with my precommit hooks running from Sublime Merge


I see this error when my precommit hook runs from within Sublime Merge:

npm WARN lifecycle The node binary used for scripts is /var/folders/zc/5y7_0xj96sq01_56d8h8mb940000gn/T/yarn--1636658315896-0.1738761001229081/node but npm is using /Users/me/.nvm/versions/node/v14.15.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

This error does not occur when committing from the CLI.

I suppose the env that SM uses is messed up somehow. How do I open a terminal in Sublime Merge to poke around and see what is misconfigured there?



Looks like the issue only arrises when setting yarn config set ignore-scripts true.