问题
I have a Meteor 1.3.1 project and I try to run in IntelliJ Webstorm on Windows 10.
The problem is that when I run my application everything works fine up until all the packages are loaded, then the program gets stuck at "Starting your app". So I get the "Started proxy" message and all the packages load properly.
I can also mention that I have a Macbook on which the project runs just fine. So it feels like the problem is related to some configuration on my Windows machine...
The image below shows where the terminal gets stuck after running meteor --verbose
.
There is no error message or anything, the terminal just keeps saying "Starting your app".
I have tried the following with no result:
- running
meteor reset
command - reinstalling meteor.
- turning my firewall off in case it would cause some problem...
- creating a new project and running it (the same problem occurs for all projects).
- Create and run a new project from Windows command line. (the same thing happens, gets stuck at "starting your app").
I greatly appreciate any suggestions to how to solve this problem! I've been bashing my head to the keyboard for quite a while and haven't managed to find a solution online either...
回答1:
I faced with such problem today on windows 8 This helped me : Meteor App not able to connect to MongoDB?
set MONGO_URL=mongodb://127.0.0.1:27017/sample
回答2:
I had to remove .meteor\local\db\METEOR-PORT before running meteor
回答3:
Take a look .meteor/local/db
dir -- check if there is a mongod.lock
file.
If there is, check its contents -- it should be empty.
If its not empty, it means MongoDB wasn't gracefully
shutdown or something.
Try deleting this file (or deleting its contents) and running Meteor again.
rm -f .meteor/local/db/mongod.lock
meteor
回答4:
Run your CMD as administrator. It might work. I had the same problem. it was because meteor mongo db was not able to connect. or if this doesn't work. run
meteor mongo localhost:[mongo_db_port]
you will know which port your app is using for mongo db in file
your_app_name.meteor\local\db\METEOR-PORT
回答5:
I encountered the same problem. What happens is that meteor couldn't start the mini mongo after it has already been initiated once. (First run always worked fine)
The solution was simply to remove meteor and install it using Chocolatey (as described on the meteor website)
来源:https://stackoverflow.com/questions/36649478/meteor-application-stuck-at-starting-your-app-when-trying-to-run