我面临的问题:
我正在尝试在我的 MacOS 上全局安装 ngrok。但是当我安装时它给了我这个:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ngrok@3.2.5 postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ngrok@3.2.5 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/careaxiom/.npm/_logs/2019-10-23T10_16_49_550Z-debug.log
与sudo
相同
最佳答案
在 gitHub 上正在讨论是什么原因造成的,但目前效果很好
sudo npm install -g ngrok --unsafe-perm=true --allow-root
关于node.js - 使用 NPM 在 MacOS 和 Arch Linux 中全局安装 Ngrok 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58520900/