How do I update devDependencies in NPM?

前端 未结 8 2063
长发绾君心
长发绾君心 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:58

    Install npm-check-updates (https://www.npmjs.org/package/npm-check-updates), then jump into your project folder and run:

    npm-check-updates
    

    And to update and save changes to your package.json file:

    npm-check-updates -u
    

提交回复
热议问题