RuntimeTools / appmetrics

Node Application Metrics provides a foundational infrastructure for collecting resource and performance monitoring data for Node.js-based applications.
https://developer.ibm.com/open/node-application-metrics/
Apache License 2.0
974 stars 125 forks source link

npm install fails on z/OS #604

Closed matthewpwilson closed 5 years ago

matthewpwilson commented 5 years ago
> appmetrics@5.0.3 install /u/wilson/node/appmetrics-again/node_modules/appmetrics
> node showBuildInfo.js && node-gyp rebuild

path.js:1165
        path = process.cwd();
                       ^

Error: ENOENT: no such file or directory, uv_cwd
    at Object.resolve (path.js:1165:24)
    at startup (bootstrap_node.js:185:32)
    at bootstrap_node.js:625:3

Using Node 8.16. I'll attach the full log.

matthewpwilson commented 5 years ago

npm-debug-appmetrics.log

mattcolegate commented 5 years ago

Process.cwd() is a base Node.js function - https://nodejs.org/dist/latest-v8.x/docs/api/process.html#process_process_cwd What happens if you run console.log('Current directory: ${process.cwd()}'); If you get the same error, then the problem is likely with base Node.js rather than Appmetrics.

mattcolegate commented 5 years ago

A cursory google for 'process.swd no such file or directory' turns up a few instances where this happens when a Node application is running in a directory that has just been deleted by another terminal session. This can be checked by exiting the application, changing directory to root and back again.

mattcolegate commented 5 years ago

@matthewpwilson Are you still experiencing this issue?

matthewpwilson commented 5 years ago

Yes, but it does appear to be a general problem with npm/node-gyp on my system :-(