Closed xueping-yang closed 3 years ago
Although our latest build on Mac with Node 14 failed, it failed during test execution, so it should be possible to install it (https://travis-ci.org/github/RuntimeTools/appmetrics/jobs/721760851). Have you checked that you have all the pre-requisites installed? https://github.com/RuntimeTools/appmetrics#pre-requisites
Yes, I have installed the pre-requisites.
% npm install node-gyp
54 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
% node -v v14.8.0 % npm -v 6.14.8 % npm install appmetrics
appmetrics@5.1.1 install /Users/.../node_modules/appmetrics node showBuildInfo.js && node-gyp rebuild
Mon, 31 Aug 2020 02:26:12 GMT
You are installing the Node Application Metrics monitoring and profiling module. Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Appmetrics uses node-gyp to compile and build local binary libraries to enhance execution performance. If the following compilation and build logs contain errors, make sure you have the node-gyp pre-requisites installed (https://github.com/nodejs/node-gyp#installation). If you have them and the build still had errors, see if there are any related issues at https://github.com/RuntimeTools/appmetrics/issues). If there aren't, feel free to open a new issue to report the bug.
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/Cellar/node/14.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/.../node_modules/appmetrics
gyp ERR! node -v v14.8.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! appmetrics@5.1.1 install: node showBuildInfo.js && node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appmetrics@5.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
gyp: No Xcode or CLT version detected!
- Xcode is a prerequisite of node-gyp https://github.com/nodejs/node-gyp#on-macos. Can you install Xcode and then retry your installation of appmetrics please.
This known issue with node-gyp may also be of interest: https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md
After install Xcode, I install appmetrics successfully. Thank you very much for your help.
I failed run 'npm i appmetrics' on mac, here is the log:
919 verbose stack Error: appmetrics@5.1.1 install: (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
919 verbose stack at EventEmitter.emit (events.js:314:20)
919 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
919 verbose stack at ChildProcess.emit (events.js:314:20)
919 verbose stack at maybeClose (internal/child_process.js:1051:16)
919 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
920 verbose pkgid appmetrics@5.1.1
921 verbose cwd /Users/i338313/project/uberbot/components/service-nodejs-keycloak-proxy
922 verbose Darwin 19.6.0
923 verbose argv "/usr/local/Cellar/node/14.8.0/bin/node" "/usr/local/bin/npm" "i" "appmetrics"
924 verbose node v14.8.0
925 verbose npm v6.14.8
926 error code ELIFECYCLE
927 error errno 1
928 error appmetrics@5.1.1 install:
node showBuildInfo.js && node-gyp rebuild
919 verbose stack Exit status 1 919 verbose stack at EventEmitter.node showBuildInfo.js && node-gyp rebuild
928 error Exit status 1 929 error Failed at the appmetrics@5.1.1 install script. 929 error This is probably not a problem with npm. There is likely additional logging output above. 930 verbose exit [ 1, true ]