Gulp issue

Krzysztof Wilk staff asked 6 years ago

Hello. I'm doing tutorials from mdbootstrap.com and I stopped on chapter "Gulp & Customization" from Responsive Web Design because of some issues. I can't install Gulp properly. I did everything step by step like in tutorial, but it doesn't work. When I type npm install gulp -g into Git Bash, It shows me less then half of text, that It was in tutorial video, and a warning, I think. Then if I click on my gulp pro package, choose "Git bash here" and type first npm init, then npm --save-dev gulp it shows me just Sorry, name can only contain URL-friendly characters., but I think it's chain reaction. I tried on other laptop with Windows 8.1, I reinstalled it but It didn't work. What should I do? I attach screens from Git Bash, that contains process of installation and initialization.

First screen

Second Screen


Bartłomiej Malanowski staff pro premium commented 6 years ago

Could you please show us your package.json file?


Dawid Adach pro commented 6 years ago

Please fix your images, you can use https://imgbb.com/ or other pic hosting services.


Dawid Adach pro answered 6 years ago

Dear Krzysztof,

please note that you during project initialisation you provided (mdbootstrap-pro) npm install --save-dev gulp which isn't valid project name.

Please try to

  1. init repository first using:
    npm init
  2. give it some short name (i.e. mdbpro)
  3. navigate to the project location
    cd project-name
  4. install gulp:
    npm install --save-dev gulp

Krzysztof Wilk staff commented 6 years ago

It worked, thanks :D


Krzysztof Wilk staff answered 6 years ago

I fixed my images using imgbb.com and this is my package.json file: enter image description here


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Academy
  • MDB Version: -
  • Device: Acer Aspire F5-573G-524K
  • Browser: Google Chrome
  • OS: Windows 10 Home
  • Provided sample code: No
  • Provided link: No