Skip to content

Nothing seems working #106

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

Closed
anandof28 opened this issue Mar 1, 2014 · 14 comments
Closed

Nothing seems working #106

anandof28 opened this issue Mar 1, 2014 · 14 comments

Comments

@anandof28
Copy link

After installing all dependency modules when i start grunt serve. the browser just open up a blank page.

@DaftMonk
Copy link
Member

DaftMonk commented Mar 1, 2014

What do you see your server console? Does refreshing the page help?

@anandof28
Copy link
Author

When i run on debug mode or grunt build on the console even thing looks fine. But on browser is just see a blank page.

One error was on when i run grunt
Running "jshint:test" (jshint) task
ERROR: Can't find config file: test/.jshintrc

@DaftMonk
Copy link
Member

DaftMonk commented Mar 1, 2014

If running in grunt serve:debug, your server starts with a break point. You'll need to continue past the break point in node inspector.

Is it true that this isn't working in grunt serve mode as well?

@anandof28
Copy link
Author

Yes, here is the console output

➜ usermanagement grunt serve
Running "serve" task

Running "clean:server" (clean) task
Cleaning .tmp...OK

Running "bower-install:app" (bower-install) task

Running "concurrent:server" (concurrent) task

Running "copy:styles" (copy) task
Copied 1 files

Done, without errors.


Execution Time (2014-03-01 05:02:45 UTC)
loading tasks    4ms  ▇▇ 3%
copy:styles    135ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 96%
Total 140ms

Running "autoprefixer:dist" (autoprefixer) task
Prefixed file ".tmp/styles/main.css" created.

Running "express:dev" (express) task
Starting background Express server
debugger listening on port 5858
Express server listening on port 9000 in development mode

Running "open:server" (open) task
db connection open
finished populating users
finished populating things

Running "watch" task
Waiting...GET / 304 17ms

but in browser its just an blank page.

@DaftMonk
Copy link
Member

DaftMonk commented Mar 1, 2014

Hmm, well you've actually pointed out a problem with the jshint configuration, i'll release a patch right away, but the jshint for the client tests hasn't been updated for the /client folder.

That should be an unrelated problem though, your console log otherwise looks normal. Maybe try scaffolding the project again?

@DaftMonk
Copy link
Member

DaftMonk commented Mar 1, 2014

Just released a patch to fix the jshint configuration.

@anandof28
Copy link
Author

Thanks update module & try again

On Saturday, March 1, 2014, Tyler Henkel [email protected] wrote:

Just released a patch to fix the jshint configuration.

Reply to this email directly or view it on GitHubhttps://github.com//issues/106#issuecomment-36416794
.

Anand

@anandof28
Copy link
Author

while making yo angular-fullstack
I found some error link this

[email protected] install /home/anand/Projects/mobrise/node_modules/mongoose/node_modules/mongodb/node_modules/bson
(node-gyp rebuild 2> builderror.log) || (exit 0)

bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/jquery/jquery.git", exit code of #128

Additional error details:
fatal: unable to connect to github.com:
github.com: Name or service not known

/usr/local/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/lib/detect-dependencies.js:55
if (_.isString(componentConfigFile.main)) {
^
TypeError: Cannot read property 'main' of undefined
at findMainFiles (/usr/local/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/lib/detect-dependencies.js:55:37)
at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/lib/detect-dependencies.js:101:17
at forOwn (/usr/local/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/node_modules/lodash/dist/lodash.js:1301:15)
at Function.forEach (/usr/local/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/node_modules/lodash/dist/lodash.js:2595:9)
at detect (/usr/local/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/lib/detect-dependencies.js:290:5)
at module.exports (/usr/local/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/bin/wiredep:34:40)
at Generator._injectDependencies (/usr/local/lib/node_modules/generator-angular-fullstack/app/index.js:468:5)
at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/async/lib/async.js:232:13
at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/async/lib/async.js:113:21
at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/async/lib/async.js:24:16
➜ mobrise make: Entering directory /home/anand/Projects/mobrise/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build' CXX(target) Release/obj.target/bson/ext/bson.o SOLINK_MODULE(target) Release/obj.target/bson.node SOLINK_MODULE(target) Release/obj.target/bson.node: Finished COPY Release/bson.node make: Leaving directory/home/anand

@anandof28
Copy link
Author

generation failed

[email protected] postinstall /home/anand/Projects/mobrise/node_modules/jpegtran-bin
node pre-build.js

stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: getaddrinfo ENOTFOUND
at errnoException (dns.js:37:11)
at Object.onanswer as oncomplete

[email protected] install /home/anand/Projects/mobrise/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /home/anand/Projects/mobrise/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory/home/anand/Projects/mobrise/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
npm ERR! [email protected] postinstall: node pre-build.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the jpegtran-bin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node pre-build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls jpegtran-bin
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.11.0-17-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/anand/Projects/mobrise
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE

[email protected] postinstall /home/anand/Projects/mobrise/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin
node lib/check.js

s/mongodb/node_modules/bson
install: missing destination file operand after ‘/home/anand/Projects/mobrise/node_modules/mongoose/node_modules/mongodb/node_modules/bson’
Try 'install --help' for more information.

@DaftMonk
Copy link
Member

DaftMonk commented Mar 1, 2014

Problems like this are hard to debug because they're build issues with 3rd party dependencies. But it seems to be the mongoose and jpegtran packages that are giving you problems, maybe also imagemin.

You can try generating the project using yo angular-fullstack --skip-install so it doesn't run npm install and bower install for you.

Then in the package json try using the latest version of those packages

...
"mongoose": "latest"
...
"jpegtran-bin": "latest"

And then finally run npm install and bower install

@anandof28
Copy link
Author

This worked but still with a warning

Running "karma:unit" (karma) task
INFO [karma]: Karma v0.10.9 server started at http://localhost:8080/
INFO [launcher]: Starting browser Chrome
WARN [watcher]: Pattern "/home/anand/Projects/userdemo/test/mock//*.js" does not match any file.
WARN [watcher]: Pattern "/home/anand/Projects/userdemo/test/spec/
/*.js" does not match any file.
INFO [Chrome 33.0.1750 (Linux)]: Connected on socket zJJPUSdoyAhHBvJfY_LS
Chrome 33.0.1750 (Linux): Executed 0 of 0 ERROR (0.285 secs / 0 secs)
Warning: Task "karma:unit" failed. Used --force, continuing.

@DaftMonk
Copy link
Member

DaftMonk commented Mar 1, 2014

Did you update your generator? npm update -g generator-angular-fullstack? That should be fixed.

@alejandronanez
Copy link

That fixed the issue. Thanks.

@dwcaraway
Copy link

I was having the same issue as @anandof86 on my mac air, but yo angular-fullstack --skip-install followed by bower install and npm install worked very well. thanks!

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

4 participants