2014-10-07 3 views
0

안녕하세요 난 -g 요 NPM 실행 설치하려고하지만 난 오류 가지고 :NPM의 errow는

npm install -g yo 
npm http GET https://registry.npmjs.org/yo 
npm http 304 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/local/lib/node_modules/npm/lib/cache.js:486:10) 
npm ERR!  at next_ (/usr/local/lib/node_modules/npm/lib/cache.js:436:17) 
npm ERR!  at next (/usr/local/lib/node_modules/npm/lib/cache.js:413:44) 
npm ERR!  at /usr/local/lib/node_modules/npm/lib/cache.js:406:5 
npm ERR!  at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:151:7) 
npm ERR!  at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:230:7) 
npm ERR! You may report this log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 
npm ERR! 
npm ERR! System Linux 3.13.0-36-generic 
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yo" 
npm ERR! cwd /home 
npm ERR! node -v v0.6.18 
npm ERR! npm -v 1.1.21 
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! Error: EACCES, open 'npm-debug.log' 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 
npm ERR! 
npm ERR! System Linux 3.13.0-36-generic 
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yo" 
npm ERR! cwd /home 
npm ERR! node -v v0.6.18 
npm ERR! npm -v 1.1.21 
npm ERR! path npm-debug.log 
npm ERR! code EACCES 
npm ERR! message EACCES, open 'npm-debug.log' 
npm ERR! errno {} 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/npm-debug.log 

내 NPM 버전은 1.1.21 내 노드 잘못이 무엇인지 어떤 생각을 가지고 havent 한을 버전은 v0.6.18입니다. 구성에 잘못된 점이 있습니까?

+0

전 세계에 설치하고 있습니다. 권한이있는 사용자를 사용하여 명령을 실행하고 있습니까? –

답변

0

Node.js 및 npm 버전을 업그레이드해야합니다. Yeoman website에서

:

  • Node.js를 v0.10.x +
  • NPM :

    보좌관을 설치하기 전에 전제 조건

    를 설치, 다음이 필요합니다 (노드와 함께 번들로 제공) v1.4.3 +

  • git
관련 문제