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

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

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

04-28 10:33