yarnpkg/yarn

Scope deprecated dependency package's dir not be removed correctly

Open

#4,933 建立於 2017年11月15日

在 GitHub 查看
 (0 留言) (1 反應) (1 負責人)JavaScript (41,514 star) (2,731 fork)batch import
cat-bughelp wantedtriaged

描述

Report bug.

First My project's package.json:

"dependencies": {
    "@yunke/core": "^4.0.1",
    "@yunke/pc_navigation": "1.0.0",
}

@yunke/pc_navigation package.json :

"version": "1.0.0",
"dependencies": {
    "@yunke/core": "^3.5.5"
}

project's node_modules struct is ok:

node_modules
|--@yunke
    |--core //4.0.1
    |--pc_navigation
        |--node_modules
            |--@yunke
                 |--core //3.5.5

then update @yunke/pc_navigation to 1.0.1,

"version": "1.0.1",
"dependencies": {
    "@yunke/core": "^4.0.1"
}

and update project dependency,

"dependencies": {
    "@yunke/core": "^4.0.1",
    "@yunke/pc_navigation": "1.0.1",
}

use yarn or yarn --force, the project node_modules' struct still not change:

node_modules
|--@yunke
    |--core //4.0.1
    |--pc_navigation
        |--node_modules
            |--@yunke
                 |--core //3.5.5

expect

node_modules
|--@yunke
    |--core //4.0.1
    |--pc_navigation

node version: v8.2.1 yarn version: 1.3.2 OS: mac, linux

貢獻者指南