且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何完全卸载然后重新安装Meteor.js?

更新时间:2023-02-21 22:50:49

让我们从删除内容开始,然后我们将继续进行重新安装.

Let’s start with the deletions, then we’ll move on to the reinstallations.

  1. 如果您曾经安装过Meteorite,请卸载并删除它:

  1. If you ever installed Meteorite, uninstall and delete it:

sudo mrt uninstall
sudo mrt uninstall --system
rm -rf ~/.meteorite

  • 然后删除流星:

  • Then delete Meteor:

    sudo rm /usr/local/bin/meteor
    rm -rf ~/.meteor
    

  • 现在从头开始:

    1. 必要时进行修复:

    1. Repair permissions if necessary:

    sudo chown -R $(whoami) ~/.npm
    

  • 重新安装流星:

  • Reinstall Meteor:

    curl https://install.meteor.com/ | sh
    

  • 下一步,检查您的项目是否具有所有正确的程序包:

  • Next check that your project has all its proper packages:

    cd /path/to/your/project
    meteor update
    

  • 如果您的项目仍然无法编译,则可以将其重置(警告:删除数据库):

  • If your project still won’t compile, you can reset it (warning: deletes database):

    cd /path/to/your/project
    meteor reset
    

  • 还是没有运气吗?重新创建Meteor项目(警告:删除数据库和该项目对您已安装的软件包的存储):

  • Still no luck? Recreate the Meteor project (warning: deletes database and the project’s memory of what packages you’ve installed):

    cd /path/to/your/project
    rm -rf ./.meteor
    cd ..
    meteor create project-new
    rm ./project-new/project-new.*
    mv ./project/* ./project-new/
    cd ./project-new
    

    (并反复运行meteor add *packagename*以重新安装您正在使用的每个软件包)

    (and run meteor add *packagename* over and over to reinstall each package you were using)