grommet / grommet-cli

Deprecated, use create-react-app for v2 instead. Command Line interface for grommet
Apache License 2.0
28 stars 18 forks source link

Just can't get started #35

Closed miloxeon closed 7 years ago

miloxeon commented 7 years ago

Hello. Grommet looks awesome and I can't wait to check it out, but when I go exactly like tutorial asks me to go, I get (node:1528) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: 0, right on grommet new sample-app

I get the error on Windows, NPM 3.10.10 and Node 6.9.4.

alansouzati commented 7 years ago

interesting. are you running with administrator permission? I'm assuming for some reason your CLI is not able to create the folder.

I cannot reproduce this issue in my mac. let me try to reproduce it in a windows machine.

miloxeon commented 7 years ago

Yes, of course I run as administrator. If there was any Grommet updates since then, the bug may be fixed, but 23 days ago I got that error on latest version then and I'm sure I did everything just as described in tutorial.

Thanks for your support!

alansouzati commented 7 years ago

i'm setting up a windows vm right now so that I can try this.

alansouzati commented 7 years ago

I was able to "reproduce" this, but it is just a warning, the app should work as expected.

screen shot 2017-06-26 at 2 40 17 pm

This is related to an optional node fsevents module.

I will make sure to remove the unhandledpromise warning in the CLI so that it does not confuse folks.

FYI we do not use fsevents directly but webpack-dev-server does. See this issue for more information:

https://github.com/strongloop/fsevents/issues/165

alansouzati commented 7 years ago

the unhandled promise has been removed in this commit:

https://github.com/grommet/grommet-cli/commit/b7f13150685cebf22d1dab6150d5b1dfa123c77a

miloxeon commented 7 years ago

Thanks a lot!