npm install Angular Pro returns error


Topic: npm install Angular Pro returns error

CharlieC asked 3 years ago

Expected behaviorAdvanced installation (schemantics) Step 5 for PRO to be successful: https://mdbootstrap.com/docs/angular/getting-started/installation/

Actual behavior

npm install git https://oauth2:*@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git --save

npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -4058 npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t https://oauth2:*_@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

Resources (screenshots, code snippets etc.)

Log:

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:*@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git', 1 verbose cli '--save' 1 verbose cli ] 2 info using npm@6.14.15 3 info using node@v14.18.1 4 verbose npm-session eeaa6e9e877595e0 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly fetchPackageMetaData error for git+https://oauth2:*@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git Error while executing: 7 silly fetchPackageMetaData undefined ls-remote -h -t https://oauth2:*@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git 7 silly fetchPackageMetaData 7 silly fetchPackageMetaData 7 silly fetchPackageMetaData spawn git ENOENT 8 timing stage:rollbackFailedOptional Completed in 0ms 9 timing stage:runTopLevelLifecycles Completed in 656ms 10 verbose stack Error: spawn git ENOENT 10 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:274:19) 10 verbose stack at onErrorNT (internal/child_process.js:469:16) 10 verbose stack at processTicksAndRejections (internal/process/task_queues.js:82:21) 11 verbose cwd C:\Users\Charl\Documents\My Code\ng-kitties 12 verbose Windows_NT 10.0.22000 13 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "git+https://oauth2:*@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git" "--save" 14 verbose node v14.18.1 15 verbose npm v6.14.15 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:*_@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git 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 ]

I generated the token in MD-gitlab."This is related to npm not being able to find a file."

Pls help, Thanks in advance.


Arkadiusz Idzikowski staff answered 3 years ago

It looks like you used incorrect installation command (there is a blank and nofollow word that npm can't recognize). Please use this command and replace YOUR_TOKEN text with the token you generated:

npm install git+https://oauth2:YOUR_TOKEN@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git --save

CharlieC commented 3 years ago

Hi @Arkadiusz Idzikowski It was this site when I edited the post that parsed some html incorrectly. The error persists unfortunately.


CharlieC commented 3 years ago

Solved it, cmd.exe cli didn't want to work with me even though on a fresh w11 machine. npm installation worked great with bash cli instead.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB5 1.3.0
  • Device: Desktop
  • Browser: vscode, cmd.exe
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: Yes
Tags