【问题标题】:Use npm install react native app, following error happens使用 npm install react native app,出现以下错误
【发布时间】:2018-08-08 01:00:01
【问题描述】:

npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-freebsd-ia32: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-freebsd-ia32@2.2.8 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-freebsd-x64: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-freebsd-x64@2.2.8 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-darwin-x64: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-darwin-x64@2.2.8 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-sunos-x64: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-sunos-x64@2.2.8 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-win32-x64: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-win32-x64@2.2.8-beta.1 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-linux-arm: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-linux-arm@2.2.8 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-linux-arm64: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-linux-arm64@2.2.8 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-win32-ia32: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-win32-ia32@2.2.8-beta.1 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-linux-ia32: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-linux-ia32@2.2.8 npm WARN 可选跳过失败的可选依赖项/@expo/ngrok-bin/@expo/ngrok-bin-darwin-ia32: npm WARN notsup 与您的操作系统或架构不兼容:@expo/ngrok-bin-darwin-ia32@2.2.8 使用 npm 安装依赖项...

npm 错误! cb() 从未调用过! 安装失败

【问题讨论】:

  • 删除node_modules文件夹再试一次。
  • 您的意思是创建的 react native app 文件夹下的 'node_modules' 文件夹?
  • 我没见过 react native 的目录结构,但是在 react web 中,它位于项目根目录下。如果您不方便删除它,请将其剪切并粘贴到某处。

标签: react-native npm-install


【解决方案1】:

通过更新npm版本解决...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-20
    • 2019-06-11
    • 2021-02-05
    • 2021-02-27
    • 2021-08-05
    • 2022-07-26
    • 2020-01-19
    • 1970-01-01
    相关资源
    最近更新 更多