I developed a component library using vue-demi
I wrote the following in my package.json according to the documentation
{
"dependencies": {
"vue-demi": "latest"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.1",
"vue": "^2.0.0 || >=3.0.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
},
}
When others use my component library, it will report an error while he installs dependencies

Presumably because he is using npm 7, I looked at the npm documentation: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#peerdependencies

As of npm v7, peerDependencies are installed by default.
I developed a component library using vue-demi
I wrote the following in my package.json according to the documentation
When others use my component library, it will report an error while he installs dependencies
Presumably because he is using npm 7, I looked at the npm documentation: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#peerdependencies