gpt4 book ai didi

node.js - 尝试安装 pm2 时出现错误

转载 作者:太空宇宙 更新时间:2023-11-03 22:46:58 25 4
gpt4 key购买 nike

我正在尝试在我的 MAC 操作系统版本 10.8.5 上安装 pm2。但是当我安装它时。

我已经在我的 MAC 上安装了 XCODE 5.1.1。但即使在这样做之后,我还是得到了 gyp ERR!堆栈错误:未找到:make”。这不是 GNU make 附带 XCODE 并且应该可以理想地工作吗?

尝试安装时请参阅下面的整个错误。

Rajeshs-MacBook-Pro:~ rajesh$ npm install pm2> fsevents@0.3.1 install /Users/rajesh/node_modules/pm2/node_modules/chokidar/node_modules/fsevents> node-gyp rebuildchild_process: customFds option is deprecated, use stdio instead.-Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.gyp ERR! build error gyp ERR! stack Error: not found: makegyp ERR! stack     at F (/Users/rajesh/.nvm/v0.11.14/lib/node_modules/npm/node_modules/which/which.js:43:28)gyp ERR! stack     at E (/Users/rajesh/.nvm/v0.11.14/lib/node_modules/npm/node_modules/which/which.js:46:29)gyp ERR! stack     at /Users/rajesh/.nvm/v0.11.14/lib/node_modules/npm/node_modules/which/which.js:57:16gyp ERR! stack     at Object.oncomplete (evalmachine.:93:15)gyp ERR! System Darwin 12.5.0gyp ERR! command "node" "/Users/rajesh/.nvm/v0.11.14/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /Users/rajesh/node_modules/pm2/node_modules/chokidar/node_modules/fseventsgyp ERR! node -v v0.11.14gyp ERR! node-gyp -v v1.0.2gyp ERR! not ok npm WARN optional dep failed, continuing fsevents@0.3.1pm2@0.12.1 node_modules/pm2├── ikt@0.0.0├── json-stringify-safe@5.0.0├── commander@2.4.0├── eventemitter2@0.4.14├── colors@0.6.2├── cli-table@0.3.0├── pidusage@0.1.0├── cron@1.0.5├── async@0.9.0├── isbinaryfile@2.0.2├── vizion@0.2.1├── axm@0.2.24├── shelljs@0.3.0├── moment@2.8.4├── debug@2.1.0 (ms@0.6.2)├── pm2-deploy@0.1.2 (tv4@1.0.18)├── nssocket@0.5.1 (lazy@1.0.11)├── pm2-axon-rpc@0.3.6 (commander@1.0.5)├── coffee-script@1.8.0 (mkdirp@0.3.5)├── pm2-rpc-fallback@3.0.9 (axon@1.0.0, commander@1.0.5)├── pm2-multimeter@0.1.2 (charm@0.1.2)├── chalk@0.5.1 (escape-string-regexp@1.0.2, ansi-styles@1.1.0, supports-color@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0)├── punt@2.2.0 (amp-message@0.1.2)├── pm2-axon@2.0.7 (amp-message@0.1.2, escape-regexp@0.0.1, configurable@0.0.1, amp@0.3.1, debug@2.0.0)├── pm2-logs@0.1.1 (blessed@0.0.36, pm2-interface@1.1.0, chalk@0.4.0)└── chokidar@0.10.9 (async-each@0.1.6, readdirp@1.1.0)

最佳答案

看来你需要先打开Xcode并接受用户协议(protocol)。

其次,当您打开 xcode 时,您必须确保还安装了命令行工具:转到 Preferences -> Downloads 然后安装 命令行工具

关于node.js - 尝试安装 pm2 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27017885/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com