2011-12-25 3 views
3

이 스택 트레이스를 철저히 읽으려고 시도했지만 더 똑똑 해지지는 않았습니다. 아이디어?npm 설치 jquery가 실패합니다.

sudo npm install jquery 

npm ERR! registry error parsing json 
npm ERR! error installing [email protected] SyntaxError: Unexpected token ILLEGAL 
npm ERR! error installing [email protected] <html><title>Request timeout</title><body><h1>Request timeout</h1></body></html> 
npm ERR! error installing [email protected]  at Object.parse (native) 
npm ERR! error installing [email protected]  at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:147:21) 
npm ERR! error installing [email protected]  at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:99:22) 
npm ERR! error installing [email protected]  at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:361:18) 
npm ERR! error installing [email protected]  at Request.emit (events.js:64:17) 
npm ERR! error installing [email protected]  at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:327:16) 
npm ERR! error installing [email protected]  at IncomingMessage.emit (events.js:81:20) 
npm ERR! error installing [email protected]  at HTTPParser.onMessageComplete (http.js:133:23) 
npm ERR! error installing [email protected]  at CleartextStream.ondata (http.js:1228:22) 
npm ERR! error installing [email protected]  at CleartextStream._push (tls.js:303:27) 
npm ERR! registry error parsing json 
npm ERR! SyntaxError: Unexpected token ILLEGAL 
npm ERR! <html><title>Request timeout</title><body><h1>Request timeout</h1></body></html> 
npm ERR!  at Object.parse (native) 
npm ERR!  at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:147:21) 
npm ERR!  at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:99:22) 
npm ERR!  at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:361:18) 
npm ERR!  at Request.emit (events.js:64:17) 
npm ERR!  at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:327:16) 
npm ERR!  at IncomingMessage.emit (events.js:81:20) 
npm ERR!  at HTTPParser.onMessageComplete (http.js:133:23) 
npm ERR!  at CleartextStream.ondata (http.js:1228:22) 
npm ERR!  at CleartextStream._push (tls.js:303:27) 
npm ERR! Report this *entire* 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 Darwin 11.2.0 
npm ERR! command "node" "/usr/local/bin/npm" "install" "jquery" 
npm ERR! cwd /Users/fw/nodeprojects/cloudnode/zorro 
npm ERR! node -v v0.4.10 
npm ERR! npm -v 1.0.106 
npm ERR! type unexpected_token 
npm ERR! arguments [ 'ILLEGAL' ] 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /Users/fw/nodeprojects/cloudnode/zorro/npm-debug.log 
npm not ok 
+0

아직 진행 중입니까? 그렇다면 npm을 최신으로 업데이트하십시오. 패키지를 풀 때 문제가 발생하여 오류가 발생한 것 같습니다. NPM 사람들이 그들의 스키마를 1.0.106 사이에서 조금 바꿨다면 지금 설명 할 것입니다. –

+0

이것은 NPM을 업데이트하지 않고서는 이미 멈췄다 고 생각합니다. 그러나 나는 그 이유를 모르겠다. MacPorts를 제거했기 때문에 그랬을 수도 있습니다 ... –

답변

10

나는 동일한 문제가있었습니다. 우리는 NPM이 coolaj86에 JQuery와에게

감사를 설치

대신

jQuery를

를 설치

NPM을 사용해야 할 것 같은데.

+0

그러면 jsdom (소문자 jquery가 설치됨)을 설치해야하지만 여전히 실패합니다. – occasl

+0

이것은 나를 위해 작동하지 않았다. 나는 occasl과 같은 문제가있다. 나는 맥에서 일하고있다. 그것은 npm 문제 일 수 있습니까? – biogeek

2

그것은 JQuery와 감가 상각 낙타 케이스처럼 보인다는 이제

npm WARN deprecated [email protected]: This is deprecated. Please use 'jquery' (all lowercase). 

당신은 내가 'sudo는'추가, 우분투에

npm install jquery 
+0

karma로 테스트를 실행할 때 소문자로 jquery 모듈을 찾을 수 없습니다. 대문자 하나 =/ – kurumkan

0

를 사용할 수있어 :

sudo npm install jquery 

을 .. 그건 나를 위해 해결했습니다.

+0

을 전역으로 설치할 필요가 없습니다. – kurumkan

관련 문제