Topic: Accessing React PRO git repo as npm dependency (package.json)
sourabha22 pro asked 7 years ago
Jakub Strebeyko staff answered 7 years ago
sourabha22 pro commented 7 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 pro premium commented 7 years ago
Please, check your emailsourabha22 pro commented 7 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.Björn Ohlsson pro answered 7 years ago
Bartłomiej Malanowski staff pro premium commented 7 years ago
Do you have an access to our gitlab repository?sourabha22 pro commented 7 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 7 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.Bartłomiej Malanowski staff pro premium answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB React
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: Yes