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

setting up new dev environment - browserify/karma error #80

Open
jeffreytu opened this issue Feb 21, 2015 · 4 comments
Open

setting up new dev environment - browserify/karma error #80

jeffreytu opened this issue Feb 21, 2015 · 4 comments

Comments

@jeffreytu
Copy link
Contributor

I switched over to a different computer (still Windows) and followed the readme steps for the project. I'm not sure what I'm missing here. It looks like a module is missing but I'm not sure which one it is and if it needs to be installed globally.

$ gulp test:unit
[11:04:34] Using gulpfile c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\gulpfile.js
[11:04:34] Starting 'test:unit'...
DEBUG [plugin]: Loading karma-* from c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules
DEBUG [plugin]: Loading plugin c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules/karma-browserify.
DEBUG [plugin]: Loading plugin c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules/karma-chrome-launcher.
DEBUG [plugin]: Loading plugin c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules/karma-jasmine.
DEBUG [plugin]: Loading inlined plugin (defining launcher:Chrome_Travis).
DEBUG [framework.browserify]: created browserify bundle: C:\Users\Jeffrey\AppData\Local\Temp\6a78c5e9bf4dca23b52618ade1d40de86bda0b81.browserify
DEBUG [framework.browserify]: add bundle to config.files at position 3
INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
DEBUG [temp-dir]: Creating temp dir at C:\Users\Jeffrey\AppData\Local\Temp\karma-80741621
DEBUG [launcher]: C:\Users\Jeffrey\AppData\Local\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\Jeffrey\AppData\Local\Temp\karma-80741621 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:9876/?id=80741621
DEBUG [framework.browserify]: building bundle
DEBUG [framework.browserify]: updating client\spa\js\instructor\spec\instructor.model.spec.js in bundle
DEBUG [framework.browserify]: updating client\spa\js\instructor\spec\instructor.view.spec.js in bundle
DEBUG [framework.browserify]: updating client\spa\js\instructor\spec\instructor.controller.spec.js in bundle
DEBUG [framework.browserify]: updating client\spa\js\learning-resource\spec\learning-resource.controller.spec.js in bundle
DEBUG [framework.browserify]: updating client\spa\js\vendor\spec\index.spec.js in bundle
DEBUG [framework.browserify]: updating client\spa\js\learning-resource\spec\learning-resource.view.spec.js in bundle
DEBUG [framework.browserify]: updating client\spa\js\learning-resource\spec\learning-resource.model.spec.js in bundle
DEBUG [framework.browserify]: bundling
DEBUG [web-server]: serving: c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\karma\static/client.html
INFO [framework.browserify]: 1124683 bytes written (1.65 seconds)
INFO [framework.browserify]: bundle built
DEBUG [watcher]: Resolved files:
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/node_modules/karma-jasmine/lib/boot.js
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/node_modules/karma-jasmine/lib/adapter.js
        C:/Users/Jeffrey/AppData/Local/Temp/6a78c5e9bf4dca23b52618ade1d40de86bda0b81.browserify
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/instructor/spec/instructor.controller.spec.js
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/instructor/spec/instructor.model.spec.js
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/instructor/spec/instructor.view.spec.js
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/learning-resource/spec/learning-resource.controller.spec.js
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/learning-resource/spec/learning-resource.model.spec.js
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/learning-resource/spec/learning-resource.view.spec.js
        c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/vendor/spec/index.spec.js
DEBUG [web-server]: serving: c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\karma\static/karma.js
DEBUG [web-server]: upgrade /socket.io/1/websocket/tZye-sQdMxG97ZaDYIy0
DEBUG [karma]: A browser has connected on socket tZye-sQdMxG97ZaDYIy0
INFO [Chrome 40.0.2214 (Windows 7)]: Connected on socket tZye-sQdMxG97ZaDYIy0 with id 80741621
DEBUG [launcher]: Chrome (id 80741621) captured in 3.785 secs
DEBUG [web-server]: serving: c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\karma\static/context.html
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/node_modules/karma-jasmine/lib/boot.js
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/node_modules/karma-jasmine/lib/adapter.js
DEBUG [web-server]: serving (cached): C:/Users/Jeffrey/AppData/Local/Temp/6a78c5e9bf4dca23b52618ade1d40de86bda0b81.browserify
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/instructor/spec/instructor.controller.spec.js
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/instructor/spec/instructor.model.spec.js
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/instructor/spec/instructor.view.spec.js
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/learning-resource/spec/learning-resource.controller.spec.js
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/learning-resource/spec/learning-resource.model.spec.js
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/learning-resource/spec/learning-resource.view.spec.js
DEBUG [web-server]: serving (cached): c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/vendor/spec/index.spec.js
Chrome 40.0.2214 (Windows 7) ERROR
  Uncaught Error: Cannot find module 'c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/instructor/spec/instructor.controller.spec.js'
  at C:/Users/Jeffrey/AppData/Local/Temp/6a78c5e9bf4dca23b52618ade1d40de86bda0b81.browserify:1:0 <- node_modules\karma-browserify\node_modules\browserify\node_modules\browser-pack\_prelude.js:1:0
Chrome 40.0.2214 (Windows 7): Executed 0 of 0 ERROR (0.396 secs / 0 secs)
DEBUG [karma]: Run complete, exiting.
DEBUG [launcher]: Disconnecting all browsers
DEBUG [framework.browserify]: cleaning up
DEBUG [launcher]: Process Chrome exited with code 0
DEBUG [temp-dir]: Cleaning temp dir C:\Users\Jeffrey\AppData\Local\Temp\karma-80741621
[11:04:39] 'test:unit' errored after 4.82 s
[11:04:39] Error: 1
    at formatError (c:\Users\Jeffrey\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:169:10)
    at Gulp.<anonymous> (c:\Users\Jeffrey\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:195:15)
    at Gulp.emit (events.js:95:17)
    at Gulp.Orchestrator._emitTaskDone (c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
    at c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\gulp\node_modules\orchestrator\index.js:275:23
    at finish (c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
    at cb (c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:29:3)
    at removeAllListeners (c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\karma\lib\server.js:220:7)
    at Server.<anonymous> (c:\Users\Jeffrey\Desktop\gh-projects\fullstack-project-01\node_modules\karma\lib\server.js:231:9)
    at Server.g (events.js:180:16)
@treyhunner
Copy link
Contributor

@jeffreytu are you still experiencing this problem?

@jeffreytu
Copy link
Contributor Author

@treyhunner Yes. I haven't looked into it since posting. Was wondering if it was something simple.

@treyhunner
Copy link
Contributor

It says it can't find c:/Users/Jeffrey/Desktop/gh-projects/fullstack-project-01/client/spa/js/instructor/spec/instructor.controller.spec.js. Could that file not be under version control maybe?

@jeffreytu
Copy link
Contributor Author

How do I check that?

It does seem like I'm missing some kind of module for running tests in each module's spec folder inside client/spa/js. If I removed the instructor/spec, it'll error the same on learning-resource/spec. Was there some global npm install not noted in the readme I needed to install?

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

2 participants