yarnpkg/yarn

Scope deprecated dependency package's dir not be removed correctly

Open

#4,933 opened on Nov 15, 2017

View on GitHub
 (0 comments) (1 reaction) (1 assignee)JavaScript (41,514 stars) (2,731 forks)batch import
cat-bughelp wantedtriaged

Description

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

Contributor guide