E
E
Evgeny Vlasov2016-10-17 19:24:40
Node.js
Evgeny Vlasov, 2016-10-17 19:24:40

How to configure gulp without node_modules folder?

How to make gulp not create a node_modules folder in the project folder, but we just install the dependencies globally.
For example, how in Ruby you simply create a list of Gemfile dependencies, and then use bundler to install all the jams globally.
It’s just that I don’t really want to load all these modules into the repository.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2016-10-18
@mr_ko

This is how you can install everything globally. But as MaxKorz told you, this is not desirable.
sudo npm install gulp -g
# Install global gulp pascages
sudo npm install --global gulp-minify-css
#create global link to gulp component
sudo npm link gulp-minify-css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question