我試圖用Yeoman和angular-generator來啓動一個新的應用程序。Yeoman,角度發生器和Karma測試不起作用
我運行此命令(根據文檔),開始一個新的應用:
yo angular my-app-name
所有的依賴已經下載,如果我跑
grunt serve
我的基礎應用在瀏覽器中顯示,一切看起來工作正常。 問題開始時我嘗試運行:
grunt test
我得到一個錯誤:Warning: Task "karma" not found. Use --force to continue.
所以我已經添加了這些行:在我packeage.json
文件
"grunt-karma": "*",
"generator-karma": "*"
,刪除node_modules
文件夾和運行`npm install
。我hping解決這個問題,但現在我得到的錯誤:
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.
我試圖谷歌有點,但我找不到任何關於。我正在運行MacOsX 10.8.5和節點v0.10.0。任何建議?
在此先感謝