moonglum / exogenesis

Build your dotfile installer, updater and teardown
MIT License
20 stars 8 forks source link

NPM uses wrong command #62

Open bitboxer opened 9 years ago

bitboxer commented 9 years ago

In this node ticket they explain that our update script is wrong. We should not use npm update but this instead:

for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2)
do
    npm -g install "$package"
done

Because:

What that does is a bit surprising: without respecting semantic versioning, it updates all the dependencies of bower (but not bower itself) to the latest available version.

Yep, sad :panda_face: .

moonglum commented 9 years ago

The more I learn about NPM, the more I want to burn it down.

bitboxer commented 9 years ago

Yep. Javascript. If there is no surprise when using it, it is not Javascript 😄