react-native - 在 native react 中获取 "Cannot read property ' pickAlgorithm' of null”错误

标签 react-native npm npm-install

运行 npm install 时出现错误.
错误是:

npm ERR! Cannot read property 'pickAlgorithm' of null

npm ERR! A complete log of this run can be found in:
npm ERR!    npm-cache\_logs\2021-10-14T08_03_47_266Z-debug.log
我做了以下但错误仍然存​​在:
  • 已删除 node-modules
  • 删除了给定的文件
  • 运行 npm cache clear --force

  • 环境:
    操作系统:Windows 10
    react 原生:0.65.1
    节点:14.17.4
    npm:7.21.0

    最佳答案

    升级到 npm v7.23.0 然后 npm install并且工作正常。

    关于react-native - 在 native react 中获取 "Cannot read property ' pickAlgorithm' of null”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69567381/

    相关文章:

    node.js - react native : is it possible to avoid storing all dependencies in node_modules subfolder

    npm 安装的版本与 package.json 中指定的版本不同,这怎么可能?如何解决这个问题?

    ios - 错误 : Cannot read property 'replace' of undefined when building iOS Cordova

    javascript - react native TextInput ref 错误,焦点不是函数

    react-native - 使用 Flex 时图像消失

    javascript - 无法 "npm install @tensorflow/tfjs-node"

    java - 如何告诉 gradle 在构建时在项目中安装 npm?

    android - :app:processDebugResources FAILED error when building react-native android

    react-native - 我可以将 DJI Mobile SDK 与任何跨平台框架一起使用吗?

    javascript - 什么在我的 package.json 中添加入口行,为什么?