Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while trying a first install #446

Closed
jmcollin78 opened this issue May 5, 2014 · 11 comments
Closed

Error while trying a first install #446

jmcollin78 opened this issue May 5, 2014 · 11 comments

Comments

@jmcollin78
Copy link

Hello,

I'm a very beginner with Mean and I'm facing problems at the "grunt" step.
When a issue the grunt command, I got this error message :
Running "jshint:all" (jshint) task
server\config\express.js
180 | function themeHandler(req, res) {
^ 'themeHandler' was used before it was defined.

1 error in 43 files

with -f to force it fails another time later :
...
Running "nodemon:dev" (nodemon) task
Waiting...
[nodemon] v1.0.17
Fatal error: EINVAL, invalid argument
Warning: Used --force, continuing.

Any idea to continue ?

JM.

@phlppn
Copy link

phlppn commented May 5, 2014

Same for me

@fyockm
Copy link
Contributor

fyockm commented May 5, 2014

@jmcollin92 @phlppn thanks for reporting. caused by some very recent commits. looking into it now.

@jmcollin78
Copy link
Author

@fyockm karma tests are also KO and I don't know if it is related :

$ grunt test
Running "env:test" (env) task

Running "mochaTest:src" (mochaTest) task

...
6 passing (149ms)

Running "karma:unit" (karma) task
INFO [karma]: Karma v0.12.14 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.7 (Windows 8)]: Connected on socket 3t00ni4uc4VYQgCOeVWD with id 43684679
PhantomJS 1.9.7 (Windows 8) MEAN controllers LoginCtrl should login with a correct user and password FAILED
Expected undefined to equal 'Fred'.
PhantomJS 1.9.7 (Windows 8): Executed 12 of 12 (1 FAILED) (0.055 secs / 0.073 secs)
Warning: Task "karma:unit" failed. Use --force to continue.

Aborted due to warnings.

fyockm added a commit that referenced this issue May 5, 2014
@fyockm
Copy link
Contributor

fyockm commented May 5, 2014

@jmcollin92 linitng fix was easy enough. I saw that travis was failing when running the karma tests. Hoping that's related to your EINVAL error.

@fyockm fyockm closed this as completed in 3a9354b May 5, 2014
@fyockm
Copy link
Contributor

fyockm commented May 5, 2014

@jmcollin92 I never got the EINVAL error. Please pull the 2 fixes when you get a chance and see if it works for you now. Thanks!

@jmcollin78
Copy link
Author

@fyockm what is the best way to update my config ? (I'm really a newby)

@fyockm
Copy link
Contributor

fyockm commented May 5, 2014

From your project root, I would add the upstream project (if you haven't already) as:
$ git remote add upstream https://github.com/linnovate/mean.git

Then pull from upstream:
$ git pull upstream master

Here's some more info: http://gitready.com/intermediate/2009/02/12/easily-fetching-upstream-changes.html

Hope that helps! You can also join us on the #mean.io IRC channel if you have more questions.

@fyockm
Copy link
Contributor

fyockm commented May 5, 2014

@jmcollin92 Thinking about it a little more, the instructions above apply if you forked the project on GitHub, which you probably didn't.
If you initialized your project from mean init <name>, the origin remote will already be set and you can simply run:
$ git pull
or
$ git pull origin master

@jmcollin78
Copy link
Author

It's ok for jshint and karma errors.
But still nok for the EINVAL error when launching "nodemon". Maybe it is related to my environment. What can I check ?

@jmcollin78
Copy link
Author

The EINVAL error is due to CYGWIN environment. See : nodejs/node-v0.x-archive#6459
Lanching from regular cmd windows command is ok.
I hope this will help someone.

@fyockm
Copy link
Contributor

fyockm commented May 5, 2014

Thanks for the info @jmcollin92. When I have to use Windows, I typically prefer the Git Bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants