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: Error while trying to install admin pro template using npm i git+https://[...]

mklepaczewski free asked 5 years ago


The JS ecosystem is pretty new to me so maybe I'm doing it the wrong way.

Expected behavior

npm install git+https://oauth2:[my token]@git.mdbootstrap.com/mdb/react/mdb-react-admin-pro.git --save

installs admin-pro

Actual behavior

npm install git+https://oauth2:[token]@git.mdbootstrap.com/mdb/react/mdb-react-admin-pro.git --save
npm ERR! path C:\Users\Matt\Desktop\t2\node_modules\mdbreact-admin-pro\mdbreact\mdbreact-4.14.0.tgz
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall stat
npm ERR! enoent ENOENT: no such file or directory, stat 'C:\Users\Matt\Desktop\t2\node_modules\mdbreact-admin-pro\mdbreact\mdbreact-4.14.0.tgz'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Matt\AppData\Roaming\npm-cache\_logs\2019-05-23T19_04_49_710Z-debug.log

Jakub Mandra staff answered 5 years ago


This repo is not maintained to work as a dependency.

It is a working project which you can install, open the react server and edit as you like; you can publish the project and connect with some backed with no changes.

If you want to use only parts of the project, you can copy the components and logic from its code. Remember to install mdbreact as well.

But I recommend using the Admin Template as a project boilerplate and develop the rest of your application inside it.

Best,

Jakub


Aliaksandr Andrasiuk staff answered 5 years ago


Hi,

Starting from v.4.18.1 we including the only build of the mdbreact package. Since mdbreact folder will no longer available.

Also, we update our MDB React Admin Pro every 2 weeks (according to MDBReact release). Once you purchase the MDBReact Admin Pro you can download the newest versions in 12 months.

You can set mdbreact as a dependency using Git.

Hope I could help.

Best regards.


David J free answered 5 years ago


This has been a couple of months. I too have the REACT Admin Pro which I have cut down to do only what I need. I now want to upgrade it to use the newer version of MDB React PRO that has just been released. I want to remove the MDB REACT folder and install it from GIT so as to get the latest.


indoing free answered 5 years ago


I am looking for the solution also


mklepaczewski free answered 5 years ago


Thank you for your reply. I'm trying to import the admin template into another project, so cloning the repo (to best of my knowledge) isn't the way to go, as it becomes unmaintained dependency (due to additional effort required).

Am I doing it the wrong way or is the repo somehow not prepared for this kind of use?


Jakub Mandra staff answered 5 years ago


Hi there,

Admin template is ready to use project with routes and views etc. You just need to:

  1. clone the repository or download the zip file
  2. open the containing folder in console
  3. run npm install to install all dependencies
  4. and you're ready to go
  5. hit npm start to run the project on port 3000

If you will need any further help, do not hesitate to ask me :)

Best,

Jakub



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.13.0
  • Device: PC
  • Browser: N/A
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No