it:ad:npm:howto:reinstall_all:home

IT:AD:NPM:HowTo:Reinstall All

Summary

If you have stuffed up the packages (aka downloaded updates that are now breaking the app and you don't know where start to fix it in allotted time…cough…) then

  • use git to revert everything to your last packages:
    • git checkout . in the root directory, or
    • git checkout [some_dir|file.txt] (eg: packages.json file)
  • then
    • delete the node_packages folder.
  • then
    • npm install again… * that should do it.
  • /home/skysigal/public_html/data/pages/it/ad/npm/howto/reinstall_all/home.txt
  • Last modified: 2024/04/12 22:00
  • by skys