【问题标题】:Issue with Global Install of Ngrok in MacOS and Arch Linux with NPM使用 NPM 在 MacOS 和 Arch Linux 中全局安装 Ngrok 的问题
【发布时间】:2020-02-19 14:03:18
【问题描述】:

我面临的问题:

我正在尝试在我的 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相同

【问题讨论】:

    标签: node.js npm-install ngrok


    【解决方案1】:

    在 gitHub 上讨论它是什么原因造成的,但现在它工作得很好

    sudo npm install -g ngrok --unsafe-perm=true --allow-root
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-05
      • 2017-11-05
      • 2020-09-27
      • 1970-01-01
      • 2021-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多