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

相關文章
相關標籤/搜索