How do I update devDependencies in NPM?

前端 未结 8 2050
长发绾君心
长发绾君心 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条回答
  •  萌比男神i
    2020-12-12 11:38

    One (slow) way to do force the update, is to remove the node_modules directory, and then do npm install again.

    This was a known bug of the npm update command, which has been fixed on the development branch of npm, see here: https://github.com/isaacs/npm/pull/3863

    It should land on the latest stable version of npm pretty soon.

提交回复
热议问题