How can I completely uninstall and then reinstall Meteor.js?

后端 未结 6 1713
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 07:48

My app started crashing for absolutely no reason. I rolled back to a version I knew worked, but it is still crashing. I cloned a version from github that I absolutely know

6条回答
  •  失恋的感觉
    2020-12-02 08:08

    There's something else here too, I read a file, located in /usr/local/bin/ named meteor in the comments on the top it was written:

        #!/bin/bash
    
    # This is the script that we install somewhere in your $PATH (as "meteor")
    # when you run
    #   $ curl https://install.meteor.com/ | sh
    # It's the only file that we install globally on your system; each user of
    # Meteor gets their own personal package and tools repository, called the
    # warehouse (or, for 0.9.0 and newer, the "tropohouse"), in ~/.meteor/. This
    # means that a user can share packages among multiple apps and automatically
    # update to new releases without having to have permissions to write them to
    # anywhere global.
    #
    # All this script does is exec ~/.meteor/meteor. But what if you don't have it
    # yet? In that case, it downloads a "bootstrap tarball", which contains the
    # latest version of the Meteor tools, and plops it down at ~/.meteor. In fact,
    # once you've run this once, you don't even really need this script: you can put
    # ~/.meteor/ into your PATH, or a symlink to ~/.meteor/meteor into some other
    # PATH directory. No special permissions needed!
    #
    # To uninstall Meteor from your system, just delete this shell script, and
    # delete your warehouse (~/.meteor/).
    

    Here's the line to uninstall meteor :

    # To uninstall Meteor from your system, just delete this shell script, and
    # delete your warehouse (~/.meteor/).
    

    And voila! where's the warehouse! some of you might think this warehouse as the .meteor folder in the projects, but it's not! 2-3 lines below it is written:

    METEOR_WAREHOUSE_DIR="${METEOR_WAREHOUSE_DIR:-$HOME/.meteor}"
    

    that's where the warehouse is!

    Reseting a Meteor Project is done by "meteor reset" would only reset your project packages.

    P.S. This is for meteor v1+

提交回复
热议问题