I am trying to use Yeoman with an angular generator to start a new application.
I ran this command (as per the docs) to launch a new application:
yo angular my-app-name
All dependencies are loaded, and if I run
grunt serve
my base application appears in the browser and everything works fine. The problem starts when I try to run:
grunt test
I get an error message: Warning: Task "karma" not found. Use --force to continue.
So, I added the following line:
"grunt-karma": "*",
"generator-karma": "*"
in my packeage.jsonfile, delete the folder node_modulesand run `npm install. I solved the problem, but now I get the error message:
loading "grunt-karma.js" tasks...ERROR
>> Error: Cannot find module 'socket.io-client'
Warning: Task "karma" not found. Use --force to continue.
Aborted due to warnings.
I tried to work a little with Google, but I can not find anything. I am running MacOSX 10.8.5 and node v0.10.0. Any suggestion?
Thank you in advance