OS:窗口10
当我创建流星项目时,它显示以下错误。所以我无法学习流星。
C:test>meteor create asd
C:Usersmsm08AppDataLocal.meteorpackagesmeteor-tool1.6.1mt-os.windows.x86_64dev_bundlelibnode_modulesmeteor-promisepromise_server.js:218
throw error;
^
Error: Error: Could not install npm dependencies for test-packages: Command failed: C:WINDOWSsystem32cmd.exe /c C:Usersmsm08AppDataLocal.meteorpackagesmeteor-tool1.6.1mt-os.windows.x86_64dev_bundlebinnpm.cmd install --production=false
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:Usersmsm08AppDataRoamingnpm-cache_logs2018-04-01T17_24_26_459Z-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:Usersmsm08AppDataRoamingnpm-cache_logs2018-04-01T17_24_26_459Z-debug.log
at Object.error (C:toolsutilsbuildmessage.js:430:11)
at C:toolsclidefault-npm-deps.js:36:20
at C:toolsutilsbuildmessage.js:334:18
at exports.EnvironmentVariable.withValue (C:toolsutilsfiber-helpers.js:89:14)
at C:toolsutilsbuildmessage.js:333:36
at exports.EnvironmentVariable.withValue (C:toolsutilsfiber-helpers.js:89:14)
at Object.enterJob (C:toolsutilsbuildmessage.js:324:26)
at Object.install (C:toolsclidefault-npm-deps.js:27:27)
at Command.func (C:toolsclicommands.js:801:36)
at C:toolsclimain.js:1523:15
如果包含git:
,请检查$路径转到此PC->高级系统设置 ->环境变量
检查路径是否包含git。
您也可以通过命令提示进行检查,并键入"路径"
您只需要从此链接中安装Windows版本的git
它将在Windows 10机器上自动设置GIT的环境变量。您不必做其他事情。