Topic: React pro downlaod in package.json

saurabh biswas free asked 4 years ago


*Expected behavior*Not able to download pro version through package json.

Created access token and gave all the permissionplz let me know the actual format to b put in pacakje.json file

error i m getting

remote: HTTP Basic: Access deniednpm ERR! fatal: Authentication failed for 'TOKEN_HERE@git.mdbootstrap.com/mdb/react/re-pro.git/" target="_blank" rel="nofollow">https://oauth2:TOKEN_HERE@git.mdbootstrap.com/mdb/react/re-pro.git/'

My packaje,json file looks like..

{ "name": "andamanbeacon-react-next", "version": "0.1.0", "private": true, "throwIfNamespace": false, "scripts": { "dev": "next dev", "build": "next build", "start": "next start" }, "dependencies": {

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

}}

I have changed token contentPlease help..Does access token need to have particular name also do they need be inside quotes.


Piotr Glejzer staff answered 4 years ago


it's should look's like like that

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

You have to generate a new token because you already put your token to everybody on the forum and they can use it. I removed this from there.

If you generated token it doesn't have to be inside quotes or something like that. Just copy and paste where is wrote 'your token...'



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: MDB React
  • MDB Version: 4.26.0
  • Device: MAC
  • Browser: chrome
  • OS: MAC OS MOJAVE
  • Provided sample code: Yes
  • Provided link: Yes