Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: OAuth2 Dev NPM install Auth failed

puamc free asked 6 years ago


When trying to install the newest MDB version via npm install git+https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git the Authentification fails. Maybe our key is outdated!? A few weeks ago it worked perfectly. Do you have some advice? We have this in our packages.json "dependencies" : "ng-uikit-pro-standard": "git+https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git", and this "suddenly" stopped working. Log from the npm run: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\<User>\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'git+https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git#dev' ] 2 info using npm@6.4.1 3 info using node@v10.9.0 4 verbose npm-session 2c92a95b4685269c 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly fetchPackageMetaData error for git+https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git#dev Error while executing: 7 silly fetchPackageMetaData C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git 7 silly fetchPackageMetaData 7 silly fetchPackageMetaData remote: HTTP Basic: Access denied 7 silly fetchPackageMetaData fatal: Authentication failed for 'https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git/' 7 silly fetchPackageMetaData 7 silly fetchPackageMetaData exited with error code: 128 8 timing stage:rollbackFailedOptional Completed in 2ms 9 timing stage:runTopLevelLifecycles Completed in 7389ms 10 verbose stack Error: exited with error code: 128 10 verbose stack at ChildProcess.<anonymous> (C:\Users\<User>\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\util\finished.js:12:19) 10 verbose stack at ChildProcess.emit (events.js:182:13) 10 verbose stack at maybeClose (internal/child_process.js:961:16) 10 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:250:5) 11 verbose cwd C:\PUL-Data\Projekte\logincenter 12 verbose Windows_NT 10.0.17134 13 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\<User>\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "git+https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git#dev" 14 verbose node v10.9.0 15 verbose npm v6.4.1 16 error Error while executing: 16 error C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git 16 error 16 error remote: HTTP Basic: Access denied 16 error fatal: Authentication failed for 'https://oauth2:<our-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git/' 16 error 16 error exited with error code: 128 17 verbose exit [ 1, true ]

Bartłomiej Malanowski staff commented 6 years ago

Could you please try to generate a new token and check if the new token is working?

jmendezsa free commented 5 years ago

excuse me, but I have the same problem, did you resolve this issue ? I have just purchase the Pro Vue version, I think that I had installed SSH Key correctly and I generated my Token correctly, but still give me this error:

npm install git+https://oauth2:I_PUT_MY_TOKEN_HERE@git.mdbootstrap.com/mdb/vue/vu-pro.git --save npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://oauth2: I_PUT_MY_TOKEN_HERE@git.mdbootstrap.com/mdb/vue/vu-pro.git npm ERR! npm ERR! remote: The project you were looking for could not be found. npm ERR! fatal: repository 'https://oauth2:I_PUT_MY_TOKEN_HERE@git.mdbootstrap.com/mdb/vue/vu-pro.git/' not found npm ERR! npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in: npm ERR! /Users/MYUSER/.npm/_logs/2019-04-21T00_00_48_669Z-debug.log

I follow the instructions of this page (Pro version): https://mdbootstrap.com/docs/vue/getting-started/quick-start/

My SSH key is fine: ssh -T git@git.mdbootstrap.com Welcome to GitLab, @MYUSER!


Bartłomiej Malanowski staff commented 5 years ago

You should be able to get it now


devhulk free answered 5 years ago


Still having this problem today.


MDBootstrap staff commented 5 years ago

Will investigate this issue.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: Other
  • MDB Version: -
  • Device: PC
  • Browser: does not matter
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes