I am going through the Gulp installation training (I am writing to show that I can’t work with it and can’t fix the error) after the command

npm install gulp --save-dev 

creates a folder node_modules , in which a bunch of folders and weighs 4mb. How to fix it (so that there is a standard folder with bin and gulp ) and why does such a problem occur?

  • one
    This is not a bug, this is a feature. docs.npmjs.com/files/folders#node-modules - Dmitriy Simushev
  • 2
    the fact that the node_modules folder is being created is not necessary to correct. so works npm - Dmitriy Simushev
  • one
    " You should also see a gulp folder within node_modules . " - Dmitriy Simushev
  • 2
    The presence of other folders is caused by different versions of npm from you and the authors of the manual. I would venture to suggest that they have npm@2.xx and you have npm@3.xx (you can call npm -v ). However, you have no problems with installing gulp. - Dmitriy Simushev
  • 2
    Again. You do not need a "clean folder". The contents of the node_modules generally should worry you last. All that is there gets there exclusively through npm . - Dmitriy Simushev

1 answer 1

For newbies:
1) Maybe your version of npm and the version in different tutorials are different, because of this a similar situation arises, you should not worry about it.
2) The node_modules folder should not cause you any emotions at all, everything that is there and gets there exclusively using npm.