Topic: Error - npm run start with Pro Advanced
dschaefers62 priority asked 1 month ago
I want to use npm/webpack for custom build (new theme - change primary & secondary colors). Expected to run 'npm run start' immediately after a successful 'npm install', but the 'npm run start' fails.
Used the instructions at: https://github.com/mdbootstrap/mdb-starter-webpack
I expected that the file structure and configurations (pkg.json, webpack.config...) would have been setup so that I could do a build without further setup, but it appears additional steps are needed.
Success: npm install git+https://oauth2:firstname.lastname@example.org.../standard/mdb-ui-kit-pro-advanced Error: npm run start (see snippet)
What steps need to be taken before running 'npm run start'? I am seeing some discrepancies with the instructions on the website vs. what gets installed to 'mdb-ui-kit' folder. For example, the documented file structure does not match the structure in 'mdb-ui-kit' folder and custom scss files are named differently (_styles.scss vs. styles.scss).
Resources (screenshots, code snippets etc.)
PS D:\Projects\mdb5proadv-npm> npm install git+https://oauth2:blanked email@example.com/mdb/standard/mdb-ui-kit-pro-advanced added 1 package in 2m PS D:\Projects\mdb5proadv-npm> npm run start npm ERR! Missing script: "start" npm ERR! npm ERR! Did you mean one of these? npm ERR! npm star # Mark your favorite packages npm ERR! npm stars # View packages marked as favorites npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Dave\AppData\Local\npm-cache\_logs\2023-02-14T01_42_31_084Z-debug-0.log
mlazaru staff answered 1 month ago
Did you run both
npm install commands?
npm install npm install git+https://oauth2:firstname.lastname@example.org.../standard/mdb-ui-kit-pro-advanced
First one is needed to install all dependencies excluding MDB PRO. The second command installs only MDB PRO without all other required dependencies, which could possibly cause the error.
Let me know if running both commands before
npm start helped you.
dschaefers62 priority commented 1 month ago
Yes, thank you! I missed the initial ‘npm install’.
Works great when running both commands. I appreciate the help!
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.1.0
- Device: Desktop
- Browser: Any
- OS: Win 11
- Provided sample code: No
- Provided link: Yes