Topic: In an existing Angular 8 project I am not able to install the Npm

AFA premium asked 3 years ago

Expected behavior

Actual behavior

Resources (screenshots, code snippets etc.) npm install git+ --save but it is not installing on my existing Angular project another thing ,if any other way to use MDB you can suggest me,I am working in Visual studio 2019 not in visual studio code,I bring the access token from gitlab.

Arkadiusz Idzikowski staff commented 3 years ago

@AFA are there any errors in the console when you try to install the library using this command?

AFA premium commented 3 years ago

Yes,the errors are 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'git+https://oauth2:*', 1 verbose cli '--save' 1 verbose cli ] 2 info using npm@6.14.11 3 info using node@v14.15.5 4 verbose npm-session 4787f083a121c746 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly fetchPackageMetaData error for git+https://oauth2:* Error while executing: 7 silly fetchPackageMetaData undefined ls-remote -h -t https://oauth2:* 7 silly fetchPackageMetaData 7 silly fetchPackageMetaData 7 silly fetchPackageMetaData spawn git ENOENT 8 timing stage:rollbackFailedOptional Completed in 1ms 9 timing stage:runTopLevelLifecycles Completed in 3289ms 10 verbose stack Error: spawn git ENOENT 10 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) 10 verbose stack at onErrorNT (internal/child_process.js:465:16) 10 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21) 11 verbose cwd E:\AFA-CRM Office\AFA-CRM\AFA-CRM\ClientApp 12 verbose Windows_NT 10.0.18362 13 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "git+https://oauth2:*" "--save" 14 verbose node v14.15.5 15 verbose npm v6.14.11 16 error code ENOENT 17 error syscall spawn git 18 error path git 19 error errno -4058 20 error enoent Error while executing: 20 error enoent undefined ls-remote -h -t https://oauth2:* 20 error enoent 20 error enoent 20 error enoent spawn git ENOENT 21 error enoent This is related to npm not being able to find a file. 22 verbose exit [ -4058, true ]

Arkadiusz Idzikowski staff commented 3 years ago

@AFA you probably don't have Git installed on your system and it is required for GitLab installation

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 10.1.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes