How do I update devDependencies in NPM?

前端 未结 8 2061
长发绾君心
长发绾君心 2020-12-12 10:52

npm update seems to just update the packages in dependencies, but what about devDependencies.

Right now you can install

相关标签:
8条回答
  • 2020-12-12 11:59

    These steps worked for me :

    1. npm install -g npm-check-updates
    2. ncu -u
    3. npm update
    4. npm install
    0 讨论(0)
  • 2020-12-12 12:00

    I ran into the same problem as OP had, and found no solution, so I decided to write a Grunt plugin that will auto-update my devDependencies..

    It's on Github, I'd love to get some input and collaborations in order to make it the best tool that NPM hasn't provided.

    Basically it will auto-update your outdated development dependencies with a simple Grunt Task.

    https://github.com/pgilad/grunt-dev-update

    0 讨论(0)
提交回复
热议问题