npm, npx are not in $PATH of Formula build environment #1699
-
I have a Formula that Running The I tried inserting What can I put in my Formula that will get this Makefile to work without having to patch it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Other formulae that use require "language/node" at the start of the formula file. Do you have this? |
Beta Was this translation helpful? Give feedback.
-
Actually, this did fix the first problem, it just hadn't been applied yet at the The second problem was that the upstream Adding |
Beta Was this translation helpful? Give feedback.
Actually, this did fix the first problem, it just hadn't been applied yet at the
--interactive
stage that I was inspecting. Runningbrew install -d -v ...
verified my first fix.The second problem was that the upstream
Makefile
doesn't supportmake
's parallelism (which is enabled by default), and the build happened to trip over some parallelizednpm
command that made me think that myPATH
fix wasn't working.Adding
ENV.deparallelize
fixed the second, and hopefully final issue.