yarnpkg/yarn

Scope deprecated dependency package's dir not be removed correctly

Open

#4933 aperta il 15 nov 2017

Vedi su GitHub
 (0 commenti) (1 reazione) (1 assegnatario)JavaScript (2731 fork)batch import
cat-bughelp wantedtriaged

Metriche repository

Star
 (41.514 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor