You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Expo创建React Native项目时遇E404错误求助

使用Expo创建React Native项目时遇到npm 404错误

尝试用Expo初始化React Native新项目,执行命令npx create-expo-app并输入项目名Test后,出现以下错误:

✖ Something went wrong in downloading and extracting the project files: npm pack expo-template-default@latest --dry-run --json exited with non-zero code: 1 
Error: npm pack expo-template-default@latest --dry-run --json exited with non-zero code: 1

已重装Node.js至v20.13.1、npm至v10.8.0(操作系统为Ubuntu 22.04.4 LTS),问题仍未解决。单独执行npm pack expo-template-default@latest --dry-run --json时返回E404错误:

npm error code E404
npm error 404 Not Found - GET https://npm.pkg.github.com/expo-template-blank/-/expo-template-blank-51.0.27.tgz
npm error 404
npm error 404  'https://registry.npmjs.org/expo-template-blank/-/expo-template-blank-51.0.27.tgz' is not in this registry.
npm error 404 This package name is not valid, because 
npm error 404  1. name can only contain URL-friendly characters
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
{
  "error": {
    "code": "E404",
    "summary": "Not Found - GET https://npm.pkg.github.com/expo-template-blank/-/expo-template-blank-51.0.27.tgz",
    "detail": "'https://registry.npmjs.org/expo-template-blank/-/expo-template-blank-51.0.27.tgz' is not in this registry.\nThis package name is not valid, because \n 1. name can only contain URL-friendly characters\n\nNote that you can also install from a\ntarball, folder, http url, or git url."
  }
}

有人遇到过这个问题吗?完全不知道该如何解决,求帮助。

内容的提问来源于Stack Exchange,提问作者Vladislav

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.23 12:37:10