2015-01-05 5 views
1

전이 node.js가 완전히 새로 왔습니다 !! 다음과 같은 오류를 극복하는 방법. 그물에 주어진 모든 가능한 해결책을 시도했다. 그리고이 오류는 환경 변수가 변경된 후에 발생합니다. 문제 해결을 도와주세요. 미리 감사드립니다.npm 시작을 수행 할 때이 오류가 발생합니다

C:\project\nodetest1>npm start 

> [email protected] start C:\project\nodetest1 
> node ./bin/www 


npm ERR! [email protected] start: `node ./bin/www` 
npm ERR! spawn ENOENT 
npm ERR! 
npm ERR! Failed at the [email protected] start script. 
npm ERR! This is most likely a problem with the nodetest1 package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ./bin/www 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls nodetest1 
npm ERR! There is likely additional logging output above. 
npm ERR! System Windows_NT 6.1.7601 
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod 
ejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 
npm ERR! cwd C:\project\nodetest1 
npm ERR! node -v v0.10.33 
npm ERR! npm -v 1.4.28 
npm ERR! syscall spawn 
npm ERR! code ELIFECYCLE 
npm ERR! errno ENOENT 
npm ERR! [email protected] start: `node ./bin/www` 
npm ERR! Exit status -1 
npm ERR! 
npm ERR! Failed at the [email protected] start script. 
npm ERR! This is most likely a problem with the nodetest1 package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ./bin/www 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls nodetest1 
npm ERR! There is likely additional logging output above. 

npm ERR! System Windows_NT 6.1.7601 
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod 
ejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 
npm ERR! cwd C:\project\nodetest1 
npm ERR! node -v v0.10.33 
npm ERR! npm -v 1.4.28 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  C:\project\nodetest1\npm-debug.log 
npm ERR! not ok code 0 

package.json은

{ 
    "name": "nodetest1", 
    "version": "0.0.0", 
    "private": true, 
    "scripts": { 
    "start": "node ./bin/www" 
}, 
    "dependencies": { 
    "body-parser": "~1.8.1", 
    "cookie-parser": "~1.3.3", 
    "debug": "~2.0.0", 
    "express": "~4.9.0", 
    "express-session": "^1.9.3", 
    "jade": "~1.6.0", 
    "mongodb": "*", 
    "mongoose": "^3.8.21", 
    "monk": "*", 
    "morgan": "~1.3.0", 
    "nodemon": "*", 
    "passport": "*", 
    "passport-local": "*", 
    "serve-favicon": "~2.1.3" 
} 

}

+0

당신은 무엇을 하려는지 아직 명확하지 않습니다. Npm은 여러분의 패키지에서 스크립트를 실행하기 시작합니다. 그리고 우리는 당신의 패키지에 대해 아무것도 모르고 envs가 변경되었습니다 – proxyfabio

+0

[이]와 유사하게 보인다 (http://stackoverflow.com/questions/25093276/node-js-windows-error-enoent-stat-c-users- rt-appdata-roaming-npm) – proxyfabio

+0

문제를 식별하기 위해 NPM package.json 파일을 게시 할 수 있습니까? – satish

답변

0

이 오류는 또한 also.This 때문에 .Therefore 그냥 UNISTALL 노드를 변경 환경에서 경로 변수의 일이 나에게 발생했다 .js를 입력하고 시스템에서 path 변수를 제거하고 AppData \ Roaming \ npm에서 Npm 및 npm-cache도 제거합니다. 그리고 나서 노드를 설치하면 확실하게 작동합니다.