由于 0.9.5.tar.gz 的 406,Yeoman 不会安装 [英] Yeoman won't install because of 406 for 0.9.5.tar.gz

查看:57
本文介绍了由于 0.9.5.tar.gz 的 406,Yeoman 不会安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天在 linux mint 17 中尝试了 npm install yeoman 并得到以下错误:

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.

我的 npm 版本是 1.3.10

My npm version is 1.3.10

有什么想法吗?

推荐答案

我今天解决了这个问题.以前,我相信 Yeoman 是使用 npm install -g yeoman 安装的.显然,这已被弃用.通过运行 sudo npm install -g yo,我能够使用 npm 1.4.28 和节点 0.10.32 成功安装 yeoman.我再次查看他们的主页找到了答案:http://yeoman.io/.

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/.

这篇关于由于 0.9.5.tar.gz 的 406,Yeoman 不会安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆