meteor 를 설치하고 프로젝트를 생성하려고 하는데 계속 에러가 떴다.
C:\WINDOWS\system32>
meteor create test
C:\Users\user\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218
throw error;
^
Error: Error: Could not install npm dependencies for test-packages: Command failed: C:\WINDOWS\system32\cmd.exe /c C:\Users\user\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd install
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-01-02T00_37_48_932Z-debug.log
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-01-02T00_37_48_932Z-debug.log
at Object.error (C:\tools\utils\buildmessage.js:430:11)
at C:\tools\cli\default-npm-deps.js:32:20
at C:\tools\utils\buildmessage.js:334:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:333:36
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at Object.install (C:\tools\cli\default-npm-deps.js:27:27)
at Command.func (C:\tools\cli\commands.js:799:36)
at C:\tools\cli\main.js:1522:15
튜토리얼대로 따라하는데도 잘 안된다.
프로젝트가 만들어지긴했는데 에러가남.
그냥 무시하고
cd test
meteor run
을 했다. 또 에러가 뜬다.
=> Started proxy.
=> Started MongoDB.
W20180102-09:41:26.411(9)? (STDERR) C:\Windows\System32\test\.meteor\local\build\programs\server\boot.js:467
W20180102-09:41:26.547(9)? (STDERR) }).run();
W20180102-09:41:26.548(9)? (STDERR) ^
W20180102-09:41:26.548(9)? (STDERR)
W20180102-09:41:26.548(9)? (STDERR) Error: The babel-runtime npm package could not be found in your node_modules
W20180102-09:41:26.548(9)? (STDERR) directory. Please run the following command to install it:
W20180102-09:41:26.549(9)? (STDERR)
W20180102-09:41:26.549(9)? (STDERR)
meteor npm install --save babel-runtime
W20180102-09:41:26.549(9)? (STDERR)
W20180102-09:41:26.550(9)? (STDERR) at babel-runtime.js (packages\babel-runtime.js:36:9)
W20180102-09:41:26.550(9)? (STDERR) at fileEvaluate (packages\modules-runtime.js:343:9)
W20180102-09:41:26.550(9)? (STDERR) at require (packages\modules-runtime.js:238:16)
W20180102-09:41:26.550(9)? (STDERR) at packages\babel-runtime.js:155:15
W20180102-09:41:26.551(9)? (STDERR) at packages\babel-runtime.js:166:3
W20180102-09:41:26.551(9)? (STDERR) at infos.forEach.info (C:\Windows\System32\test\.meteor\local\build\programs\server\boot.js:414:13)
W20180102-09:41:26.551(9)? (STDERR) at Array.forEach (<anonymous>)
W20180102-09:41:26.552(9)? (STDERR) at C:\Windows\System32\test\.meteor\local\build\programs\server\boot.js:413:9
W20180102-09:41:26.552(9)? (STDERR) at C:\Windows\System32\test\.meteor\local\build\programs\server\boot.js:463:5
W20180102-09:41:26.552(9)? (STDERR) at Function.run (C:\Windows\System32\test\.meteor\local\build\programs\server\profile.js:510:12)
에러로그에서 시키는대로 저 명령어를 쳤다. 뭔가 된듯하다
그리고 다시
meteor run
C:\Windows\System32\test>meteor run
[[[[[ C:\Windows\System32\test ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
Type Control-C twice to stop.
됐다!!
아 힘들다 계속 안돼서 별거 다해보고 구글 다찾아봤는데 며칠 쉬다오니 갑자기 잘된다.
http://localhost:3000/
들어가보면.. 짠!
내가 이화면을 볼라고 여섯시간을 고생했어
아직 프로젝트 시작도 안했는데 설치부터 이렇게 힘들다니 ㄷㄷ