Ubuntu上安装Karma失败对策

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

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

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

相关文章
相关标签/搜索