I'm currently working on a hobby project where I try to analyze many NodeJS packages and the best source for such packages is obviously npm. Is there any possibility to download many (500+) packages from npm. Maybe the 500 most popular or also randomly selected packages - I don't really care.
Just to clarify. I am not looking for some "half-legal" way to download these packages.
答案 0 :(得分:1)
实际上,npm install
不仅下载单个软件包,而且还下载其所有依赖项。因此,一个相对较大的项目将下载许多软件包,我估计大约有5个大型项目将很快总共有500多个软件包。
作为一个真实的例子,这是我的一个项目中的脚本,该脚本将安装1000多个软件包:
npm install vue
npm install vue-router
npm install connect-history-api-fallback
npm install vuex
npm install @vue/cli
npm install @vue/cli-service-global
npm install axios
npm install material-design-icons-iconfont
npm install vue-template-compiler
npm install @fortawesome/fontawesome-free