更新时间:2023-02-21 23:03:37
让我们从删除开始,然后再进行重新安装.
Let’s start with the deletions, then we’ll move on to the reinstallations.
如果您曾经安装过 Meteorite,请卸载并删除它:
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
现在从头开始:
必要时修复权限:
Repair permissions if necessary:
sudo chown -R $(whoami) ~/.npm
重新安装 Meteor:
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)