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: Cannot npm install mdbreact pro in my package.json

BingoAK free asked 4 years ago


I have added a dependency to my package.json

"mdbreact": "git+https://oauth2:MY_TOKEN@git.mdbootstrap.com/mdb/react/re-pro.git",

and I get this error: npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://oauth2:XXXXXXXXXX@git.mdbootstrap.com/mdb/react/re-pro.git npm ERR! npm ERR! remote: HTTP Basic: Access denied npm ERR! fatal: Authentication failed for 'https://git.mdbootstrap.com/mdb/react/re-pro.git/' npm ERR! npm ERR! exited with error code: 128

I am sure the token is the same as my generated token. It was copy and pasted and verified. What do I do?


Piotr Glejzer staff commented 4 years ago

what is your gitlab login?


Piotr Glejzer staff commented 4 years ago

I see you have access to our gitlab account so did you try to generate new token?


BingoAK free commented 4 years ago

I don't know a gitlab login. That was not a requirement in your directions. I know my account login to MDB. Any name I give for a token generates the same token. So yes, I generated a token.


Piotr Glejzer staff commented 4 years ago

So if you added a new token that everything is working now or not?


BingoAK free commented 4 years ago

BTW, As I said in my previous comment. It doesn't seem to matter what name I use in the generator. It always generates the same token. I am using Chrome. Version 80.0.3987.132 (Official Build) (64-bit)


BingoAK free commented 4 years ago

So, I reinstalled my git Bash and now for some reason, everything works. I am not sure why -- but glad it is. You can close this thread.


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.25.4
  • Device: Laptop
  • Browser: Chrome
  • OS: Win 10
  • Provided sample code: No
  • Provided link: Yes