-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install fails on MacOS #408
Comments
@nolanmar511 PTAL? |
Looking now. We've also never run continuous tests on Mac.. so I don't know it the profiler has ever worked on Mac. @JustinBeckwith -- Is this specific to Node 11.10, or does this also happen with older versions of Node? |
This also happens with 10.15.1. |
Looks like for node-gyp to work on MacOS, Xcode has to be installed: This increases urgency for pre-compiled binaries for MacOS |
Given the profiler is primarily for profiling production environments and those are rarely OSX I am marking it as p2 instead of p1. |
The problem is that nobody on OSX can actually run |
There is a work-around (installing Xcode). Should we document that while working on pre-compiled binaries? |
If this is only an issues on master (not the shipped module), and it'll get fixed with the next release - I say let it lie. |
I'm closing this, because I now want to track this in pprof-nodejs (which has the native component now). New issue here: google/pprof-nodejs#33 |
Any update on this? I'm still experiencing this error:
|
@jhnferraris -- Do you have python 2 installed? Is it the version of python used by default on your machine. Looking at similar problems with node-pre-gyp (I saw a similar error messages with node-pre-gype here and here), it seems that this error might be related to the node-pre-gyp trying to use python 3. |
@nolanmar511 can we force npm to use only Python 2 and bail if not found? |
@kalyanac -- I don't know that there is an easy way to verify that Python 2 is available when needed. We would only want to verify that Python 2 is present when node-pre-gyp fails to download pre-built binaries. If those binaries are available, it doesn't matter is Python 2 is available; if the binaries cannot be downloaded, node-pre-gyp is going to try to build the binaries from source right away (so, we can't then check if Python 2 is available). We don't really have that much control over |
@nolanmar511 Hi Margaret, my local macOS uses Python 3. I got it to install the node package. My prerequisite was to install pyenv so I can easily switch between Python versions. |
Thanks! I have sent #454 to update docs clarify that additional dependencies may be needed for installing @google-cloud/profiler. |
With the latest (11.10) nodejs, I am struggling to run
npm install
on master:The text was updated successfully, but these errors were encountered: