Sign in


Sign up


React Pro

Ron Lepine Pro User asked 2 weeks ago in MDB pro, version:4.1

Trying to install react pro into a new project. I inserted the it repository into my package.json dependencies object. Not authorized. Is there a way I can point to the downloaded files?

3 Answers
Jakub Strebeyko answered 2 weeks ago

Hi Ron,

Thanks for reaching out! In case of having trouble installing MDB package through NPM using a repo url, one can always to do it manually. Interestingly enough, NPM itself can be installing from a specified, relative path, rather than from online repository, using simply ‘npm install .

If that does not work too for any reason, what is left is doing it manually-manually, meaning moving the directory to your main project folder and appending it to in your main JS file:

var mdbreact = require("path/to/mdbreact.js")

. If that’s the case, make sure the CSS files get included, too!

With Best Regards,
Kuba

Jakub Strebeyko replied 1 week ago

Hi there Denis,

Here is our offical guide to installing and importing the PRO components. In case of detailed questions please do not hesitate to ask!

With Best Regards,
Kuba

Denis Correia replied 1 week ago

Good afternoon,
 How do I install the React PRO package via NPM, and after installing how do I import the components?

Ron Lepine Pro User replied 2 weeks ago

Thanks, I used npm install to the downloaded path and it work.
Appreciate the help.

Ron Lepine Pro User answered 2 weeks ago

Thanks, I used npm install to the downloaded path and it work.
Appreciate the help.

Jakub Strebeyko answered 1 week ago

Glad it helped! Regards