英文:
Why this shows error while installing any packages?
问题
每当我使用以下命令安装任何软件包
npm install
然后输出会出现错误,您可以在这里看到
(https://i.stack.imgur.com/1duiK.jpg)
英文:
Whenever I install any package with this command
> npm install
then output comes with errors,Here You can See
(https://i.stack.imgur.com/1duiK.jpg)
答案1
得分: 1
你实际上没有从 npm install
收到任何错误!看起来 npm 正在检测到你已经安装了所有所需的包,所以它只显示 up to date
。
但是,你会看到它也报告了一些安全漏洞或过时的依赖项,可以更新。这是正常的。你不必采取任何措施来使你的应用程序正常工作,但运行 npm audit fix
然后手动修复剩余的依赖错误将导致更安全的依赖树。
英文:
You're not actually getting any errors from npm install
! It looks like npm is detecting that you've already installed all of the required packages, which is why it just says up to date
.
However, you see that it is also reporting about some security vulnerabilities or out-of-date dependencies that could be updated. This is normal. You don't have to do anything to get your app to work, but running npm audit fix
and then manually fixing the remaining dependency errors will result in a more secure dependency tree.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论