Forcing npm install failures on mismatched peerDependencies
问题 Does anyone have a technique for getting npm install to completely fail when peerDependency version mismatches are present? We frequently hit issues where peerDependency warnings go unheeded by developers, and semver mismatches cause breakage when insufficient testing is present. It would be nice if our CICD processes could bomb out due to error exit codes when attempting an install with unresolved version conflicts. 回答1: You can't (as far as I'm aware) do this during npm install , but you