简体   繁体   English

NPM 安装 - 忽略错误

[英]NPM Install - ignore errors

I'm trying to do npm install to download all the packages listed in my package.json, but one of the packages doesn't work because some node-gyp bs, but it doesn't just skip that package, it fails to install any.我正在尝试执行npm install以下载我的 package.json 中列出的所有软件包,但其中一个软件包不起作用,因为某些 node-gyp bs,但它不仅跳过该软件包,而且无法安装任何。

How can i make it ignore the errors and just continue installing packages?我怎样才能让它忽略错误并继续安装软件包? I don't need all of them for all parts of my program.我的程序的所有部分都不需要所有这些。

What you could do is temporarily remove the packages that require node-gyp, and then install the packages and add them back to your package.json.您可以做的是暂时删除需要 node-gyp 的包,然后安装这些包并将它们添加回您的 package.json。 Basically, you'd be removing the packages that are being troublemakers, and then putting them back so that you can remember what they are.基本上,您将移除那些制造麻烦的包,然后将它们放回原处,以便您记住它们是什么。

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

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