简体   繁体   English

使用 npm 安装反应应用程序漏洞问题

[英]React app vulnerabilites issue with npm install

I am currently learning Academind React course.我目前正在学习 Academind React 课程。 I downloaded starting setup zip file and unzipped it.我下载了启动设置 zip 文件并将其解压缩。 Open with vscode and run "npm install" in terminal as per instructions.使用 vscode 打开并按照说明在终端中运行“npm install”。 But I am facing with vulnerabilities issue.但我面临着漏洞问题。 I have tried running "npm audit fix" and "npm audit fix --force".我试过运行“npm audit fix”和“npm audit fix --force”。 I deleted the folder and tried again.我删除了文件夹并再次尝试。 None solved the problem.没有解决问题。 Please help me enter image description here请帮我在这里输入图片描述

you can change dependencies or development depecencies version on package.json with new version example "react": "^16.0.0" to "react": "~16.0.0".您可以将 package.json 上的依赖项或开发依赖版本更改为新版本示例“react”:“^16.0.0”到“react”:“~16.0.0”。 next run npm install it will be automatic update version下次运行 npm 安装它会自动更新版本

i suggest you to use the version on the tutorial because if you use new version maybe there are some code changes我建议您使用教程中的版本,因为如果您使用新版本,可能会有一些代码更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM