我在运行npm install时出错.

npm ERR! Cannot read property 'pick算法rithm' 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

我做了以下操作,但错误依然存在:

  1. 删除node-modules
  2. 删除了给定的文件
  3. npm cache clear --force

Environment:

OS: Windows 10
react native: 0.65.1
Node: 14.17.4
npm: 7.21.0

推荐答案

升级到npm v7.23.0,然后npm install,工作正常.

React-native相关问答推荐

Redux toolkit通过按钮操作进行查询

单击时更改ToucheableOpacity colored颜色 不起作用

axios 在react native 中给出 [AxiosError: Network Error]

react native 如何更新倒置平面列表的数组中的项目

useState 函数似乎阻止了 Animated.timing 事件?

React Native - 何时调用componentWillUnmount?

找不到变量 atob

如何获取 React Native 应用程序的崩溃日志(log)?

如何在 React Native 的无状态功能组件中扩展原生组件的 props TypeScript 接口?

使用 React-Native 将 content:// URI 转换为 Android 的实际路径

React Native 用于低互联网带宽的小型 apk APP应用

Visual Studio 代码错误:-Failed to start flow Error: Wrong version of Flow. The config specifies version ^0.92.0 but this is version 0.95.1

未找到 xcode 'boost/config/user.hpp' 文件

如何重置react-native 动画?

使用 Bearer身份验证令牌react native图像

React Native:无法点击调试菜单

错误:无法解析模块`buffer`

React native + redux-persist:如何忽略键(黑名单)?

zoom 到指定的标记 react-native-maps

React Native 项目,有时使用 expo start 获得连接 ECONNREFUSED 127.0.0.1:19001