'How to update dev plugin in Nativescript?

This may be a noob question but I can't figure out how to update a plugin under devDependencies. I want to update "@nativescript/webpack" which is currently at ~5.0.0-beta.0. There is 5.1 available but I can't update it.

I've tried

ns plugin update @nativescript/webpack
npm i -g @nativescript/webpack
npm i @nativescript/webpack --save-dev

none of these work.



Solution 1:[1]

npm i --save-dev @nativescript/webpack

is how you do it as per this comment

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Whip