Ubuntu上安装Karma失败对策

 在Ubuntu上安装Karma遇到超时 timeout 错误。Google了一下,国外的码农给了一个快捷的解决方案,实测可行,贴在这里:

sudo apt-get install npm nodejs
npm cache clean
npm config set registry http://registry.npmjs.org
npm install karma

上面高亮的这个设置是必要的,不能省略。

posted @ 2016-11-08 18:33  寸木  Views(219)  Comments(0Edit  收藏  举报