Yeoman won't install because of 406 for 0.9.5.tar.gz

笑着哭i 提交于 2019-12-10 02:20:59

问题


I tried npm install yeoman in linux mint 17 today and get the following error:

npm http 406 http://github.com/yeoman/generators/archive/0.9.5.tar.gz
npm ERR! fetch failed http://github.com/yeoman/generators/archive/0.9.5.tar.gz
npm ERR! Error: 406 Not Acceptable
npm ERR!   etc

It was working last time I installed a few weeks ago. This is a deal breaker for me today as I need this package.

My npm version is 1.3.10

Any ideas?


回答1:


I was able to fix this today. Previously, I believe that Yeoman was installed with npm install -g yeoman. Apparently, that has been deprecated. I was able to successfully install yeoman with npm 1.4.28 and node 0.10.32 by running sudo npm install -g yo. I found the answer by taking a look at their homepage again: http://yeoman.io/.



来源:https://stackoverflow.com/questions/25504342/yeoman-wont-install-because-of-406-for-0-9-5-tar-gz

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!