node.js - Npm/Yarn 未正确安装并出现问题

标签 node.js react-native npm expo yarnpkg

node ./postinstall.js

ngrok - 解压二进制文件时出错错误:无法提取目标路径之外的文件

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @expo/ngrok@2.3.0 postinstall: node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @expo/ngrok@2.3.0 postinstall script.

  • 操作系统:Windows 10
  • Node :8.11.4
  • npm:6.4.0

最佳答案

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

这将解决您的问题。

关于node.js - Npm/Yarn 未正确安装并出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54898247/

相关文章:

javascript - 在 NodeJS 中过滤和排序文档数组

Node.js:如何从回调中正确返回对象?

javascript - 可触摸的不透明度功能在应用程序启动时立即调用

ios - 如何防止 React Native 中的静态图像在 iOS 上卡顿/异步加载

javascript - React Native 无法解析 babel 插件

node.js - 不同版本的 Node.js 使用不同的 node_modules 目录

css - 尝试 sass --watch ./folder ./css 时 sass 编译错误

php - 远程停止 NodeJS

javascript - 如何将 npm 包导入客户端文件

mysql - 如何使用meteor设置mysql