【发布时间】:2013-07-26 23:52:58
【问题描述】:
我正在尝试安装 yeoman,但收到以下错误消息:
我确实安装了 node.js 和 npm(最新版本),现在我正在这样做
npm install -g yo grunt-cli bower
and
npm install -g yo
但我收到以下错误消息
npm http GET https://registry.npmjs.org/yo
npm http 200 https://registry.npmjs.org/yo
npm ERR! Error: No compatible version found: yo
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR! at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR! at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR! at /usr/share/npm/lib/cache.js:408:5
npm ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/siddhartha/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-19-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "yo"
npm ERR! cwd /home/siddhartha
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: yo
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/siddhartha/npm-debug.log
npm not ok
怎么了?是我的 linux 系统还是 npm 或 node.js 的问题?我需要 yeoman 尽快启动并运行,但我被卡住了。
【问题讨论】:
-
错误消息说明了您的节点版本。你有什么版本?
node -v -
等一下,我刚刚安装了 node.js,但是当我节点时,我收到一条消息节点未安装
-
我应该重新启动系统吗?
-
我不是 linux 人,所以我不知道是否有必要重新启动系统。我相信它不应该,但也许值得一试。你是如何安装节点的?你用的是什么类型的linux?
-
Linux mint 我确实重新启动了。现在我从 nodejs.org 下载了节点并再次进行构建过程,这需要一段时间
标签: javascript node.js npm yeoman web-development-server