Mac 安装Cordova-hot-code-push-cli 失败的解决方法

Mac下安装cordova-hot-code-push-cli报错
执行命令:sudo npm i -g cordova-hot-code-push-cli

错误日志如下:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ngrok@2.3.0 postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ngrok@2.3.0 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/macbook/.npm/_logs/2019-12-23T06_25_47_357Z-debug.log

安装 'ngrok' 提示权限不足, 切换到管理员用户也没用.

最后找到一篇帖子

记录一下解决方案:

sudo npm install -g cordova-hot-code-push-cli --unsafe-perm=true --allow-root
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容