当前位置: 首页 > 知识库问答 >
问题:

我不能运行我的博览会项目,因为我更新了expo-sdk

慕容品
2023-03-14

当我尝试运行我的世博会项目时,我收到以下信息:

D:\React\myproject>npm start

> start
> expo start

Starting project at D:\React\myproject
Unable to find expo in this project - have you run yarn / npm install yet? 

如果我运行npm安装,我会得到以下结果:

D:\React\myproject>npm install
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/

up to date, audited 940 packages in 4s

18 packages are looking for funding
  run `npm fund` for details

12 vulnerabilities (6 low, 6 moderate)

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details. 

这就是我运行npm审核时得到的结果:

 D:\React\myproject>npm audit
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
# npm audit report

node-fetch  =0.22.0-rc
          Depends on vulnerable versions of @react-native-community/cli
          Depends on vulnerable versions of @react-native-community/cli-platform-ios
          Depends on vulnerable versions of fbjs
          node_modules/react-native
          node_modules/react-native/node_modules/react-native
        metro-config  =0.3.2
  Depends on vulnerable versions of xmldom
  node_modules/plist
    @react-native-community/cli-platform-ios  *
    Depends on vulnerable versions of plist
    Depends on vulnerable versions of xcode
    node_modules/@react-native-community/cli-platform-ios
      react-native  =0.22.0-rc
      Depends on vulnerable versions of @react-native-community/cli
      Depends on vulnerable versions of @react-native-community/cli-platform-ios
      Depends on vulnerable versions of fbjs
      node_modules/react-native
      node_modules/react-native/node_modules/react-native
        @react-native-community/cli  *
        Depends on vulnerable versions of metro
        Depends on vulnerable versions of react-native
        node_modules/react-native/node_modules/@react-native-community/cli
    simple-plist  *
    Depends on vulnerable versions of plist
    node_modules/simple-plist
      xcode  >=0.8.3
      Depends on vulnerable versions of simple-plist
      node_modules/xcode

12 vulnerabilities (6 low, 6 moderate)

Some issues need review, and may require choosing
a different dependency. 

这是因为我尝试更新expo sdk,但我不知道我做错了什么。有人能帮我吗?

共有2个答案

羊禄
2023-03-14

您可以尝试添加.npmrc文件并更新user\xxx目录下的回购分配。登记处=https://registry.npmjs.org/

赖杰
2023-03-14

运行npm配置集注册表https://registry.npmjs.org/

某些计算机仍在运行http://registry.npmjs.org/出于安全原因,这将不再被允许。

 类似资料:
  • 我正在开始一门Android Studio课程,但我在运行代码时遇到了问题:事实上,当我使用Nexus S API 22点击“Run app”时,启动的是我的旧项目,而不是我的新项目。我有Android Studio 3.5 我试图重启Android Studio并启动全新的项目,但没有成功。 谢谢你的帮助。

  • 有错误信息,有人能帮我吗?

  • 我是一名经验丰富的android开发者,并开始学习react native。我正在用ubuntu做一个项目。我使用了像这样的代码,并使用visualstudio代码作为代码编辑器。 要在我的物理设备上运行一个项目,我在终端上运行,将目录更改为项目目录,然后我开始localhost如,然后我通过此代码在android上启动我的项目。该项目在我的物理设备上运行良好。 但是当我使用展览时,我得到了一个错

  • 我一直在努力让它工作,我想我可以使用一些帮助。我正在做一个Java项目,其中pom.xml有一堆依赖项,其中一些依赖项本身间接依赖于这个jar:如下: 我在pom中需要这个特殊的jar,因为我想使用jax rs api中的新特性:。问题是,当我构建项目时,会出现以下错误: 我试图通过排除来自通过检查依赖关系树包含它的依赖关系。 现在该项目构建良好,但当我尝试运行它时,我得到了这个错误: 似乎需要球

  • 我试图将我的android项目连接到php上的数据库,我的代码中没有错误,但当我试图在手机上运行我的应用程序时,它不起作用 这就是Json_解析 我知道,这是我在日志中的错误 e/ViewRootImpl: sendUserAction事件()mView==null