Meteor app hangs - meteor

Working through Discover Meteor and just getting started is causing some headaches.
I ran the following:
mrt create microscope
mrt
Which gave me the output:
Stand back while Meteorite does its thing
Done installing smart packages
Ok, everything's ready. Here comes Meteor!
[[[[[ ~/Projects/microscope ]]]]]
livedata: updating npm dependencies -- sockjs, websocket...
It just hangs, then eventually localhost:3000 would return a "No data received" error. Any ideas?

Looks like it was a network connection problem - on subsequent runs the app runs fine.

Related

Updating MeteorJS not working, running "meteor --version" or "meteor update" causes an error

I am trying to work on an old project that was using Meteor 1.8.1 at the time of its last commit. I have tried updating it by running "meteor --version" and "meteor update", but in both situations, the terminal will say "Downloading meteor-tool#1.8.1..." for about a minute before throwing the following error:
Sorry, this project uses Meteor 1.8.1, which is not installed and could not be downloaded. Please check to make
sure that you are online.
I am most definitely online, so I do not know what the error is. Any help would be greatly appreciated.

"Meteor create my-app" taking forever installing npm dependencies

I am a newbie in web development. I have installed Meteor on ubuntu. When I try to create an app using something like:
Meteor create my-app
It creates the my-app folder but it never returns out of "Installing npm dependencies". I have been waiting for more than half and hour. I was wondering if this is normal? How long more should I wait for it to end?
I'm working behind a company proxy but I have set the proxy using the following lines (and that allowed me to install Meteor in the first place):
export http_proxy=http://username:password#proxy:port
export https_proxy=http://username:password#proxy:port
I was stuck in a similar situation on Windows.
Cancel the job using ctrl+c. Since meteor creates the app directory even before the command is complete, you will have the directory intact, go into the directory and run
meteor npm install
It will install all the dependencies (took 7s for me),
then run meteor to start the server.

Meteor adding okgrow:accounts-ui-react atmosphere package not working

I am running a Meteor 1.4.2.3 application and everything has been running fine so far. I have been following the Level Up Tutorials and I've come to a point where I want to add user accounts.
In order to do that I'm using the `okgrow:accounts-ui-react' atmosphere package which can be found here.
I've followed all the steps by running the following 3 lines in the console:
> meteor add okgrow:accounts-ui-react
> npm install --save react-komposer classnames
> meteor add accounts-password
Those commands all ran successfully.
Now when I want to start my Meteor application by running meteor in the console I get the following error:
Does anyone know what I could be doing wrong?
Things I have tried that haven't solved it:
Updating all my meteor packages using the meteor update --all-packages command
Deleting the node_modules folder and running 'meteor' again.
The issue here is that React Komposer completely changed their api in the latest version for some reason. There is an outstanding issue regarding this here:
https://github.com/okgrow/accounts-ui-react/issues/4
In the meantime, I'd suggest https://github.com/studiointeract/accounts-ui as development has continued on it again.

Unknown packages after updating meteor: how to resolve

I have installed a new ubuntu machine and imported my meteor app from bitbucket. However when I try running the app the following error occurs:
unknown package: accounts-admin-ui
The meteor version on my new machine is 1.0.4.1. On the old machine it is 1.0.3. On the old machine the app is running perfectly.
I tried the following things
meteor add mrt:accounts-admin-ui
meteor add kenyee:meteor-accounts-admin-ui
I even tried:
meteor remove accounts-admin-ui
Nothing helps so I tried:
mrt migrate-app
Unfortunately, nothing happens after that.
I have the same problem with the package stale-session. The only things that helps is removing the package definitions in the file ./meteor/packages. But this is not the solution I want because my app needs these packages.
How can I solve this issue?

Meteor - Error: no such package: 'blaze'

While working on meteor I suddenly found this error
quackadmin#quack:~/quack$ sudo meteor
[[[[[ ~/quack ]]]]]
=> Started proxy.
=> Meteor 0.8.3 is available. Update this project with 'meteor update'.
=> Started MongoDB.
=> Errors prevented startup:
While building package `iron-dynamic-template`:
error: no such package: 'blaze'
=> Your application has errors. Waiting for file change.
It seems someone suddenly did an update on the iron-package and broke it. Anyone know how to resolve this. I spent ages on this and now can't get through this error.
I tried setting a manual version but that doesn't seem to work as well. Meteor has so much undocumented magic going on.
Iron Router 0.8.1 needs Meteor 0.8.3 to work.
To fix this just run:
meteor update
This updates the project to use Meteor 0.8.3 (the current release as at the time of this answer)
Meteor just had an update yesterday (0.8.3).
Along with that they changed a some things in iron-router and blaze...
Just running meteor update should work, or if you really wanted too (and I'm assuming you installed blaze through meteorite) you can manually uninstall it by using mrt uninstall blaze and then check with mrt and then mrt add blaze again.
I think this should work, but I'm still new to this stuff so forgive me if I'm wrong....
Good Luck :)
-------- UPDATE -------
Meteor just updated and the Meteorite package is now built in and your packages should auto update. If you are still seeing this problem search for it by using
meteor search [Package]
try searching for blaze now, I found it.
Here is the link for more information:
https://www.meteor.com/blog/2014/08/26/meteor-090-new-packaging-system

Resources