简体   繁体   中英

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.

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. Basically, you'd be removing the packages that are being troublemakers, and then putting them back so that you can remember what they are.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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