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: Accessing React PRO git repo as npm dependency (package.json)

sourabha22 pro asked 6 years ago


Hi Team, I am trying to get started with the React Pro version. Background: I am following getting started documentation.. a) I tried setting ssh keys as instructed in the documentation and then added git repo url into package.json to be resolved as npm dependency. It FAILS. Also ssh -T test fails post setting up ssh keys: $ ssh -T git@git.mdbootstrap.com git@git.mdbootstrap.com's password:  Permission denied, please try again. (I can provide the logs when running with -V option) b) I tried to generate Personal access token (User setting/Access Token) and use that as git+https://oauth2 into package.json, it FAILS as well. Can some please guide/help. Appreciate your help. Thanks.

Guys, recently, we have created "quick start" guide for MDB React - both free and pro versions. Please, check it here

Björn Ohlsson pro answered 6 years ago


Hi! I have also purchased mdbreact pro. I have already gotten the original working on my project, is it simply to replace the current dependency in package.json ("mdbreact": "git+https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design.git") with something else? In that case, could you send it to me.

Bartłomiej Malanowski staff commented 6 years ago

Do you have an access to our gitlab repository?

sourabha22 pro commented 6 years ago

Assuming you have access to gitlab repository: a) Generate access token (User Settings -> Access Tokens) b) Add following dependency to package.json "mdbreact": "git+https://oauth2:<access_token>@git.mdbootstrap.com/mdb/react/re-pro.git"

awolfard pro commented 6 years ago

@BjörnOhlsson saved my day. As he describes. Generate an access token and change your package.json: “mdbreact”: “git+https://oauth2:{TOKEN_HERE}@git.mdbootstrap.com/mdb/react/re-pro.git” Thanks.

Jakub Strebeyko staff answered 6 years ago


Hi there, Thanks for reaching out! Considering sensitivity of the data discussed, please contact us via e-mail, instead. b.malanowski@mdbootstrap.com With Best Regards, Kuba

sourabha22 pro commented 6 years ago

Thanks Kuba. As suggested, i had sent couple of emails to but haven't heard back. Appreciate any help.

Bartłomiej Malanowski staff commented 6 years ago

Please, check your email

sourabha22 pro commented 6 years ago

I was able to access the rpo using personal access token. However, following getting started guide for CRA and running npm install, i get following output: <user>-MacBook-Pro:test-mdb <user>$ npm install npm WARN deprecated react-popper@0.7.5: please use 0.7.4 or 8.0.0 and above > fsevents@1.1.2 install /Users/<user>/<user>/1_workspace/1_development/5_theme/1_ui/1_mdbootstrap/1_react/test-mdb/node_modules/mdbreact/node_modules/fsevents > node install node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.2 and node@9.8.0 (node-v59 ABI) (falling back to source compile with node-gyp) xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance SOLINK_MODULE(target) Release/.node CXX(target) Release/obj.target/fse/fsevents.o In file included from ../fsevents.cc:85: ../src/methods.cc:14:12: warning: 'Call' is deprecated [-Wdeprecated-declarations] handler->Call(3, argv); ^ ../../../../nan/nan.h:1618:3: note: 'Call' has been explicitly marked deprecated here Call(int argc, v8::Local<v8::Value> argv[]) const { ^ 1 warning generated. SOLINK_MODULE(target) Release/fse.node COPY /Users/<user>/<user>/1_workspace/1_development/5_theme/1_ui/1_mdbootstrap/1_react/test-mdb/node_modules/mdbreact/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node TOUCH Release/obj.target/action_after_build.stamp npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@4.0.0 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. npm WARN react-addons-css-transition-group@15.6.2 requires a peer of react@^15.4.2 but none is installed. You must install peer dependencies yourself. npm WARN react-motion-ui-pack@0.10.3 requires a peer of react@0.14.x || ^15.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-motion-ui-pack@0.10.3 requires a peer of react-dom@0.14.x || ^15.0.0 but none is installed. You must install peer dependencies yourself. added 239 packages from 322 contributors in 27.598s <user>-MacBook-Pro:test-mdb <user>$ Is this expected? Or is there something wrong here as there are few errors here? Thank you.


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: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes
Tags