Error: Cannot find module 'underscore' thrown in console for all Meteor commands

徘徊边缘 提交于 2019-12-05 15:28:16

I was able to resolve this error by completely uninstalling / reinstalling meteor and meteorite through the following steps.

sudo rm /usr/local/bin/meteor
rm -rf ~/.meteor
sudo mrt uninstall
sudo mrt uninstall --system
sudo chown -R `whoami` ~/.npm
curl https://install.meteor.com | /bin/sh
sudo -H npm install -g meteorite

I was able to verifying everything was working properly by running meteor --version and mrt create test-app

First off, your meteorite is out of date. To update meteorite run (sudo if applicable):

npm update -g meteorite

If you ran the 'mrt' or 'meteor' command as sudo in the past, it will cause issues. Clear meteorite by running:

sudo mrt uninstall
sudo mrt uninstall --system
sudo chown -R `whoami` ~/.npm

You also want to remove the 'build' folder inside existing projects, located in '/project/.meteor/local/build'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!