How do I update devDependencies in NPM?

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

    To update package.json in addition to the local modules, run

    npm update --save-dev
    

    Alternatively, the same command to save time

    npm update -D
    

    You can view the full detail of update, or any command for that matter through

    npm help 
    

提交回复
热议问题