2016-07-08 3 views
0

일부 각도 튜토리얼을 시작하고 OSX 요세미티에서 npm을 시작할 수 없습니다.Npm 시작 오류

아래는 오류 로그입니다. 나는 지침을 따라 왔지만 localhost : 3000에서 컴파일 된 응용 프로그램을 볼 수 없습니다.

0 info it worked if it ends with ok 
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'lite' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose run-script [ 'prelite', 'lite', 'postlite' ] 
5 info prelite [email protected] 
6 info lite [email protected] 
7 verbose unsafe-perm in lifecycle true 
8 info [email protected] Failed to exec lite script 
9 verbose stack Error: [email protected] lite: `lite-server` 
9 verbose stack Exit status 1 
9 verbose stack  at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:217:16) 
9 verbose stack  at emitTwo (events.js:87:13) 
9 verbose stack  at EventEmitter.emit (events.js:172:7) 
9 verbose stack  at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) 
9 verbose stack  at emitTwo (events.js:87:13) 
9 verbose stack  at ChildProcess.emit (events.js:172:7) 
9 verbose stack  at maybeClose (internal/child_process.js:827:16) 
9 verbose stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 
10 verbose pkgid [email protected] 
11 verbose cwd /Users/ross/Sites/lynda/exercisefiles/c2/02-01-start 
12 error Darwin 14.5.0 
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lite" 
14 error node v4.4.7 
15 error npm v2.15.8 
16 error code ELIFECYCLE 
17 error [email protected] lite: `lite-server` 
17 error Exit status 1 
18 error Failed at the [email protected] lite script 'lite-server'. 
18 error This is most likely a problem with the media-watch-list package, 
18 error not with npm itself. 
18 error Tell the author that this fails on your system: 
18 error  lite-server 
18 error You can get information on how to open an issue for this project with: 
18 error  npm bugs media-watch-list 
18 error Or if that isn't available, you can get their info via: 
18 error 
18 error  npm owner ls media-watch-list 
18 error There is likely additional logging output above. 
19 verbose exit [ 1, true ] 

답변

0

문제가 해결되었습니다. 실제 문제는 localhost : 3000, 에 연결하는 것이 아니라 레일이 올바르게 설치되지 않았기 때문입니다. "레일 서버"를 실행했을 때 다음과 같은 오류가 발생했습니다 :

C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.1/lib/tzinfo/data_source.rb: 
No source of timezone data could be found. 

Please refer to http://tzinfo.github.io/datasourcenot found for help resolving this error. 

The link to the solution is: 
https://github.com/tzinfo/tzinfo/wiki/Resolving-TZInfo%3a%3a 
DataSourceNotFound-Errors I think this is a common error in Windows machine.