admin管理员组文章数量:1326461
I am trying to install yeoman but I am getting the following error messages:
I did install node.js and npm (latest version),now I am doing this
npm install -g yo grunt-cli bower
and
npm install -g yo
but I get the following error messages
npm http GET
npm http 200
npm ERR! Error: No patible version found: yo
npm ERR! No valid targets found.
npm ERR! Perhaps not patible 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.onplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! <;
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! mand "/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 patible version found: yo
npm ERR! message No valid targets found.
npm ERR! message Perhaps not patible 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
What is wrong? Is it something with my linux system or with npm or with node.js? I need yeoman up and running soon but I am stuck.
I am trying to install yeoman but I am getting the following error messages:
I did install node.js and npm (latest version),now I am doing this
npm install -g yo grunt-cli bower
and
npm install -g yo
but I get the following error messages
npm http GET https://registry.npmjs/yo
npm http 200 https://registry.npmjs/yo
npm ERR! Error: No patible version found: yo
npm ERR! No valid targets found.
npm ERR! Perhaps not patible 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.onplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian/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! mand "/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 patible version found: yo
npm ERR! message No valid targets found.
npm ERR! message Perhaps not patible 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
What is wrong? Is it something with my linux system or with npm or with node.js? I need yeoman up and running soon but I am stuck.
Share Improve this question asked Jul 26, 2013 at 16:00 Swaroop NagendraSwaroop Nagendra 6052 gold badges15 silver badges25 bronze badges 6-
The error message says something about your version of node. What version do you have?
node -v
– Third Commented Jul 26, 2013 at 16:07 - Wait I just installed node.js but when i node I get a message node not installed – Swaroop Nagendra Commented Jul 26, 2013 at 16:10
- Should I restart my system? – Swaroop Nagendra Commented Jul 26, 2013 at 16:11
- I'm not a linux guy so I don't know if it's necessary to restart your system. I believe it shouldn't but maybe worth to try. How did you install node? And what type of linux are you using? – Third Commented Jul 26, 2013 at 16:27
- Linux mint and I did restart. Now I downloaded node from nodejs and again doing the build process and it is taking a while – Swaroop Nagendra Commented Jul 26, 2013 at 16:31
2 Answers
Reset to default 5You might try reading the error message:
npm ERR! Perhaps not patible with your version of node?
Yeoman requires Node >=0.8, but you have Node 0.6:
npm ERR! node -v v0.6.19
Upgrading to latest stable Node should do it.
sudo apt-get install node -y
I am using Ubuntu 12.10.
I had the same issue.
I am going to describe my exact fixes for
npm install -g yo
- Yeoman requires node version >= 0.8
- Because of permissions, I needed to use
sudo npm install -g yo
The steps are:
sudo apt-get install python-software-properties -y
sudo apt-get install software-properties-mon -y
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update -y
sudo apt-get install nodejs -y
sudo npm install -g yo
install nodejs
is to update the node to the latest version
add-apt-repository
is needed for a better repository to update the nodejs
python-software-properties
and software-properties-mon
are for add-apt-repository
For references:
See https://stackoverflow./a/16032073/80353 which explains why you need to install either the python or the software to run add-apt-repository
See https://stackoverflow./a/16303380/80353 which inspires the general steps
本文标签: javascriptProblems installing yeomanStack Overflow
版权声明:本文标题:javascript - Problems installing yeoman - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742211516a2433798.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论