当我同时拥有peerDependencies和Dependencies包时会发生什么?
如果我在依存关系和peerDependencies中拥有node-novel-info
{
"name": "@node-novel/md-loader",
"version": "1.0.0",
"description": "",
"license": "ISC",
"author": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"gray-matter": "^4.0.2",
"node-novel-info": "^2.3.27"
},
"peerDependencies": {
"node-novel-info": "^2.3.27"
}
}
本地项目已经存在
什么时候会发生
npm install @node-novel/md-loader
yarn add @node-novel/md-loader
它将先使用现有的本地项目@node-novel/md-loader
,然后再安装一个新的本地项目吗?