angular-update-guide icon indicating copy to clipboard operation
angular-update-guide copied to clipboard

npx vs npm

Open twerske opened this issue 3 years ago • 1 comments

v13 updates are npx commands and probably should be npm commands?

twerske avatar Nov 04 '21 17:11 twerske

This one is tricky, b/c the command is perfectly fine but it doesn't work as expected if npm@7 or 8 is used https://github.com/npm/cli/issues/3210

Consider the situation when you migrate from 11 to 12 https://update.angular.io/?v=11.0-12.0

The guide will suggest the following:

image

If I run it via something newer than npm@6 - npx will ignore the specified version and will pull the latest one which is 13 (and not 12).

Den-dp avatar Nov 25 '21 15:11 Den-dp