I decided to master Gulp. Faced such a problem - the installation was successful, but the tasks are not executed, it displays the message "Gulp is not an internal or external command, an executable program or a batch file."

Prior to that, renamed the system folder with Cyrillic letters to Latin. What could be the reason?

    2 answers 2

    Maybe someone will encounter such a problem at the “beginner-beginner” stage, so I’ll tell you what I did.

    To begin with, installing gulp, I ran into the problem that it gave an error when performing the task. After monitoring this topic, I realized that the dog is buried in the fact that the path to this folder contains a system folder, whose name was in Cyrillic, which prevents adequate work of the galp.

    I changed the name of the system folder, but the problem persisted. Only with another message: "Gulp is not an internal or external command, an executable program or a batch file . "

    Intuitively understood that the problem most likely lay during the renaming of the system folder. After searching for information on this topic, I found out that it was necessary to make changes also in the additional parameters of the system. Namely, in the PATH variable, changing the values ​​from the Cyrillic alphabet, which remained there, to the Latin name, which has changed.

    And it all worked.

    These are the beginner's adventures.

    • Plus for women's intuition. But in your answer there is nothing useful for CO readers. How did you set the path specifically?) On this topic, many holivars are being bred. And there are many questions on the topic why global modules do not work. - A. Gusev
    • @A.Gusev sorry, can I explain "how did I set the path specifically"? It seemed to me that I described in detail what actions I took) - Alla

    You can specify the full path from the node_modules folder

    node_modules/.bin/gulp.cmd 

    or create a local gulp.cmd file with the contents

     node_modules/.bin/gulp.cmd %* 
    • Where do you need to specify this full path? - Alla
    • I understand that in the folder where npm install was installed - Dmitry Kozlov
    • there is this file - Alla
    • so how does it start? - Dmitry Kozlov
    • if you click on it, it quickly flashes and disappears - Alla