我在运行时遇到错误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-modulesnpm cache clear --force环境:
操作系统:Windows 10
本机反应:0.65.1
节点:14.17.4 
npm:7.21.0
在 Reactjs 中,运行 npm install 时,样式组件显示错误。虽然安装其他依赖项工作正常,但问题出在样式组件上。
\nnpm 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我已在 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'
}
然而,正如我所做的:
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 …npm ×2
npm-install ×2
angular ×1
dependencies ×1
node.js ×1
null ×1
react-native ×1
reactjs ×1
windows-10 ×1