在安装React的样式化组件时出现错误

时间:2020-03-10 01:56:39

标签: reactjs npm styled-components

运行时

npm install --save styled-components

在终端中收到以下消息:

found 20 vulnerabilities (2 low, 18 moderate)

  run `npm audit fix` to fix them, or `npm audit` for details
Jcusick-belm19:PCC App joshua.cusick$ npm audit fix
npm WARN eslint-config-react-app@5.2.0 requires a peer of eslint-plugin-flowtype@3.x but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

updated 2 packages in 4.972s

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

fixed 3 of 20 vulnerabilities in 918673 scanned packages
  17 vulnerabilities required manual review and could not be updated
Jcusick-belm19:PCC App joshua.cusick$ npm install styled-components@^5.0.0 react@^16.8 react-dom@^16.8 react-is@^16.8
npm WARN eslint-config-react-app@5.2.0 requires a peer of eslint-plugin-flowtype@3.x but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

+ react@16.13.0
+ styled-components@5.0.1
+ react-dom@16.13.0
+ react-is@16.13.0
updated 5 packages and audited 918674 packages in 7.038s

....这里到底发生了什么?

0 个答案:

没有答案