相关疑难解决方法(0)

在本机反应中出现“无法读取 null 的属性‘pickAlgorithm’”错误

我在运行时遇到错误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
Run Code Online (Sandbox Code Playgroud)

我执行了以下操作,但错误仍然存​​在:

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

环境:

操作系统:Windows 10
本机反应:0.65.1
节点:14.17.4
npm:7.21.0

npm react-native npm-install

136
推荐指数
8
解决办法
20万
查看次数

如何读取null的属性?

在 Reactjs 中,运行 npm install 时,样式组件显示错误。虽然安装其他依赖项工作正常,但问题出在样式组件上。

\n
npm ERR!\xc2\xa0cannot read the properties of null (read "edgesOut").\nnpm ERR!\xc2\xa0A complete log of this run can be found in:\nnpm ERR! C:UsersDELLAppDataLocalnpm-cache_logs2023-05-09T07_37_18_586Z-debug-0.log\n
Run Code Online (Sandbox Code Playgroud)\n

null dependencies reactjs npm-install styled-components

3
推荐指数
1
解决办法
1447
查看次数

如何解决npm错误!安装 Angular cli 时代码 ECONNRESET

我已在 Windows-10 本地系统上成功安装了 Nodejs。

当我执行:npm 版本时,我得到:

C:\WINDOWS\system32>npm version
{
  npm: '8.5.3',
  node: '16.14.0',
  v8: '9.4.146.24-node.20',
  uv: '1.43.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.18.1',
  modules: '93',
  nghttp2: '1.45.1',
  napi: '8',
  llhttp: '6.0.4',
  openssl: '1.1.1m+quic',
  cldr: '40.0',
  icu: '70.1',
  tz: '2021a3',
  unicode: '14.0',
  ngtcp2: '0.1.0-DEV',
  nghttp3: '0.1.0-DEV'
}
Run Code Online (Sandbox Code Playgroud)

然而,正如我所做的:

C:\WINDOWS\system32>npm install -g @angular/cli

我收到这个错误:

npm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno ECONNRESET
npm ERR! network request to https://registry.npmjs.org/ajv failed, reason: read ECONNRESET
npm ERR! network This is a …
Run Code Online (Sandbox Code Playgroud)

node.js npm windows-10 angular

2
推荐指数
1
解决办法
2万
查看次数