Witam!
Uczę się angulara 2.0, postępuję zgodnie z poradnikiem w celu przygotowania sobie środowiska, jednak już na początku drogi mam problem z zainstalowaniem zależności. Poszczególne kroki:
-
Zainstalowałem node.js 10.15.1 LTS
-
Otwieram konsolę w trybie administratora
-
npm init
-
npm install jspm --save-dev
npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN a@1.0.0 No description npm WARN a@1.0.0 No repository field. + jspm@0.16.53 added 317 packages from 215 contributors and audited 2288 packages in 36.71s found 1 critical severity vulnerability run `npm audit fix` to fix them, or `npm audit` for details
-
jspm init
Would you like jspm to prefix the jspm package.json properties under jspm? [yes]: Enter server baseURL (public folder path) [./]: Enter jspm packages folder [.\jspm_packages]: Enter config file path [.\config.js]: Configuration file config.js doesn't exist, create it? [yes]: Enter client baseURL (public folder URL) [/]: Do you wish to use a transpiler? [yes]: Which ES6 transpiler would you like to use, Babel, TypeScript or Traceur? [babel]:TypeScript ok Verified package.json at package.json Verified config file at config.js Looking up loader files... err Git not installed. You can install git from http://git-scm.com/downloads. err Unable to load registry github err Error downloading loader files. err Unable to load registry github
-
jspm install npm:@angular/core npm:@angular/common npm:@angular/compiler npm:@angular/platform-browser-dynamic npm:@angular/platform-browser npm:rxjs text reflect-metadata zone.js
Looking up npm:@angular/core Looking up npm:@angular/common Looking up npm:@angular/compiler Looking up npm:@angular/platform-browser-dynamic Looking up npm:@angular/platform-browser Looking up npm:rxjs warn Error on locate for jspm:text Error: Command failed: git remote show origin -n 'git' is not recognized as an internal or external command, operable program or batch file. at ChildProcess.exithandler (child_process.js:297:12) at ChildProcess.emit (events.js:197:13) at maybeClose (internal/child_process.js:984:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) warn Error on locate for jspm:reflect-metadata Error: Command failed: git remote show origin -n 'git' is not recognized as an internal or external command, operable program or batch file. at ChildProcess.exithandler (child_process.js:297:12) at ChildProcess.emit (events.js:197:13) at maybeClose (internal/child_process.js:984:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) warn Error on locate for jspm:zone.js Error: Command failed: git remote show origin -n 'git' is not recognized as an internal or external command, operable program or batch file. at ChildProcess.exithandler (child_process.js:297:12) at ChildProcess.emit (events.js:197:13) at maybeClose (internal/child_process.js:984:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) err Error locating jspm:text. warn Installation changes not saved.
Gdy po wykonaniu tych kroków zaglądam do pliku package.json, plik ten nie posiada kodu zależności jspm. Proszę o pomoc.