【发布时间】:2020-07-22 23:57:46
【问题描述】:
我使用 mac os calina 版本 10.15.3 我跑: npm install -g expo-cli 我有错误:
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN 已弃用 urix@0.1.0:请参阅 https://github.com/lydell/urix#deprecated npm WARN 已弃用 resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated joi@14.0.4:根据 hapi 支持政策 (hapi.im/support),此版本已被弃用。请升级到最新版本以获得最佳功能、错误修复和安全补丁。如果您此时无法升级,可以为旧版本 (hapi.im/commercial) 提供付费支持。 npm WARN 已弃用 request@2.88.0:请求已弃用,请参阅 request/request#3142 npm WARN deprecated core-js@2.6.11: core-js@
@expo/traveling-fastlane-darwin@1.13.1 预安装 /usr/local/lib/node_modules/expo-cli/node_modules/@expo/traveling-fastlane-darwin 节点平台.js
npm WARN 可选跳过可选依赖:@expo/traveling-fastlane-linux@1.13.1 (node_modules/expo-cli/node_modules/@expo/traveling-fastlane-linux): npm WARN notsup 跳过可选依赖:@expo/traveling-fastlane-linux@1.13.1 不受支持的平台:想要 {"os":"win32,linux","arch":"any"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-freebsd-x64@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin-freebsd-x64) : npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-freebsd-x64@2.2.8 不受支持的平台:想要 {"os":"freebsd","arch":"x64"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-linux-x64@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin-linux-x64) : npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-linux-x64@2.2.8 不受支持的平台:想要 {"os":"linux","arch":"x64"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-sunos-x64@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin-sunos-x64) : npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-sunos-x64@2.2.8 不受支持的平台:想要 {"os":"sunos","arch":"x64"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-linux-arm64@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin-linux-arm64) : npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-linux-arm64@2.2.8 不受支持的平台:想要 {"os":"linux","arch":"arm64"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-linux-ia32@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin-linux-ia32) : npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-linux-ia32@2.2.8 不受支持的平台:想要 {"os":"linux","arch":"ia32"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-linux-arm@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin-linux-arm) : npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-linux-arm@2.2.8 不受支持的平台:想要 {"os":"linux","arch":"arm"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-freebsd-ia32@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin-freebsd-ia32) : npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-freebsd-ia32@2.2.8 不受支持的平台:想要 {"os":"freebsd","arch":"ia32"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-win32-ia32@2.2.8-beta.1 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin- win32-ia32): npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-win32-ia32@2.2.8-beta.1 不受支持的平台:想要 {"os":"win32","arch":"ia32"}(当前: {"os":"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-darwin-ia32@2.2.8 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin-darwin-ia32) : npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-darwin-ia32@2.2.8 不受支持的平台:想要 {"os":"darwin","arch":"ia32"}(当前:{"os" :"darwin","arch":"x64"}) npm WARN 可选跳过可选依赖:@expo/ngrok-bin-win32-x64@2.2.8-beta.1 (node_modules/expo-cli/node_modules/@expo/ngrok-bin/node_modules/@expo/ngrok-bin- win32-x64): npm WARN notsup 跳过可选依赖:@expo/ngrok-bin-win32-x64@2.2.8-beta.1 不受支持的平台:想要 {"os":"win32","arch":"x64"}(当前: {"os":"darwin","arch":"x64"}) npm WARN @expo/image-utils@0.2.18 需要一个同级的 sharp-cli@^1.10.0 但没有安装。您必须自己安装对等依赖项。
npm 错误!代码 EACCES npm 错误!系统调用符号链接 npm 错误!路径 ../lib/node_modules/expo-cli/bin/expo.js npm 错误!目标 /usr/local/bin/expo npm 错误!错误号 -13 npm 错误!错误:EACCES:权限被拒绝,符号链接 '../lib/node_modules/expo-cli/bin/expo.js' -> '/usr/local/bin/expo' npm 错误! [操作错误:EACCES:权限被拒绝,符号链接'../lib/node_modules/expo-cli/bin/expo.js'->'/usr/local/bin/expo'] { npm 错误!原因:[错误:EACCES:权限被拒绝,符号链接'../lib/node_modules/expo-cli/bin/expo.js'->'/usr/local/bin/expo'] { npm 错误!错误号:-13, npm 错误!代码:'EACCES', npm 错误!系统调用:'符号链接', npm 错误!路径:'../lib/node_modules/expo-cli/bin/expo.js', npm 错误!目的地:'/usr/local/bin/expo' npm 错误! }, npm 错误!堆栈:“错误:EACCES:权限被拒绝,符号链接'../lib/node_modules/expo-cli/bin/expo.js'->'/usr/local/bin/expo'”, npm 错误!错误号:-13, npm 错误!代码:'EACCES', npm 错误!系统调用:'符号链接', npm 错误!路径:'../lib/node_modules/expo-cli/bin/expo.js', npm 错误!目的地:'/usr/local/bin/expo' npm 错误! } npm 错误! npm 错误!该操作被您的操作系统拒绝。 npm 错误!您可能没有以当前用户身份访问此文件的权限 npm 错误! npm 错误!如果您认为这可能是权限问题,请仔细检查 npm 错误!文件及其包含目录的权限,或尝试运行 npm 错误!再次以 root/Administrator 身份执行该命令。
npm 错误!可以在以下位置找到此运行的完整日志: npm 错误! /Users/duclong/.npm/_logs/2020-04-09T19_09_53_271Z-debug.log
【问题讨论】:
标签: react-native expo