google / pprof-nodejs

pprof support for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Receiving a 404 error on Apple M1

eyas-ranjous opened this issue · comments

commented
> pprof@3.2.0 install [my local path]
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v3.2.0/node-v83-darwin-arm64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for pprof@3.2.0 and node@14.18.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v3.2.0/node-v83-darwin-arm64-unknown.tar.gz
  CXX(target) Release/obj.target/pprof/bindings/profiler.o
  SOLINK_MODULE(target) Release/pprof.node
  COPY [my local path]/node_modules/pprof/build/node-v83-darwin-arm64-unknown/pprof.node
  TOUCH Release/obj.target/action_after_build.stamp

The 404 error is expected, since pre-built binaries are only available for Linux (both alpine and non-alpine Linux; documented here). The 404 being logged at the "ERR" level is confusing, but I think that's related to node-pre-gyp.

This module should default to building during the installation process when pre-built binaries are not available. The module node-gyp is used to do this. Instructions for required dependencies for node-gyp to build are available here: https://github.com/nodejs/node-gyp#on-macos

Based on the available information, I'm closing this issue. If pprof-nodejs continues to fail to install (or persists in failing to install) when all node-gyp dependencies are up-to-date, please do re-open this issue. Full logs from the installation would be helpful for debugging.

commented

thanks for the info. makes sense