Npm-check-updates: Command ncu -u doesn't upgrade my package.json

Created on 5 Mar 2019  ยท  6Comments  ยท  Source: raineorshine/npm-check-updates

  • [x] I have read the list of known issues before filing this issue.
  • [x] I have searched for similiar issues before filing this issue.

  • node version: 11.10.1-1

  • npm version: 6.8.0-1
  • npm-check-updates version: 2.15.0-1

    * ncu version: 2.15.0

The command ncu -u doesn't upgrade my package.json file.

ncu -u                                                    
Using /path/to/package.json
[..................] / :
 gatsby                  ^2.1.19  โ†’  ^2.1.22 
 gatsby-image            ^2.0.30  โ†’  ^2.0.31 
 gatsby-plugin-manifest  ^2.0.20  โ†’  ^2.0.21 
 gatsby-plugin-sharp     ^2.0.23  โ†’  ^2.0.24 
 gatsby-remark-images     ^3.0.5  โ†’   ^3.0.6 
 react-spring             ^8.0.9  โ†’  ^8.0.11 

It lacks the message package.json upgraded and indeed the package doesn't change at all.

unable-to-reproduce

All 6 comments

Thanks for reporting. I will try this out when I am at my computer and see if I can reproduce.

I can relate

I downgraded my ncu version in the meantime.
Not sure in was version it's breaking but I randomly downgraded to 2.11.0

@anonimoconiglio npm install -g [email protected]

I downgraded my ncu version in the meantime.
Not sure in was version it's breaking but I randomly downgraded to 2.11.0

@anonimoconiglio npm install -g [email protected]

Did it work if downgraded?

That's very odd. ncu -u is upgrading the package.json on my end.

I just upgraded to V3 (3.0.3) and now it works again!

ncu -u      
Using /home/path/to/package.json

 gatsby                       ^2.1.19  โ†’   ^2.1.27 
 gatsby-image                 ^2.0.30  โ†’   ^2.0.31 
 gatsby-plugin-manifest       ^2.0.20  โ†’   ^2.0.22 
 gatsby-plugin-react-helmet    ^3.0.7  โ†’    ^3.0.8 
 gatsby-plugin-sharp          ^2.0.23  โ†’   ^2.0.25 
 gatsby-remark-images          ^3.0.5  โ†’    ^3.0.6 
 gatsby-transformer-remark     ^2.3.0  โ†’    ^2.3.1 
 react                        ^16.8.3  โ†’   ^16.8.4 
 react-dom                    ^16.8.3  โ†’   ^16.8.4 
 react-spring                  ^8.0.9  โ†’   ^8.0.14 
 react-typography            ^0.16.18  โ†’  ^0.16.19 
 typography                  ^0.16.18  โ†’  ^0.16.19 
 typography-theme-sutro      ^0.16.18  โ†’  ^0.16.19 

Upgraded /home/path/to/package.json. Run npm install to install new versions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicksarafa picture nicksarafa  ยท  6Comments

Simek picture Simek  ยท  5Comments

HitomiTenshi picture HitomiTenshi  ยท  6Comments

mriehema picture mriehema  ยท  7Comments

JanWeskamp picture JanWeskamp  ยท  3Comments