简体   繁体   English

Visual Studio Node NPM sequelize/繁琐的依赖(package.json中没有列出)

[英]Visual Studio Node NPM sequelize / tedious dependencies (not listed in package.json)

I am trying to install sequelize and then tedious.我正在尝试安装 sequelize 然后很乏味。 I run npm install sequelize , for example.例如,我运行npm install sequelize After installing, the Solution Explorer lists a copious number of packages that are suffixed by (not listed in package.json) .安装后,解决方案资源管理器会列出大量后缀为(not listed in package.json)的包。 I have never seen this before and don't know if this is a corrupt install, or whether it is okay.我以前从未见过这个,也不知道这是安装损坏还是没问题。 It doesn't look pretty.它看起来不漂亮。 I have tried an npm ci and npm update and neither fixed the issue.我已经尝试了npm cinpm 更新,但都没有解决问题。 Should I care?我应该关心吗? Or just collapse that folder and keep going?或者只是折叠该文件夹并继续?

在此处输入图像描述

it's a normal, after install any lib.这是正常的,安装任何库后。 what happens is that the sequelize module has its own dependencies, so it will also install them.发生的事情是 sequelize 模块有自己的依赖项,所以它也会安装它们。 Remember that every time a lib is installed, it will certainly install other libs and in the end, we will have n folders.请记住,每次安装一个库时,它肯定会安装其他库,最后,我们将有 n 个文件夹。

for example:例如:

npm i express

several folders with express dependencies will be created将创建几个具有明确依赖性的文件夹

express dependencies表达依赖

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

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