How to install node js modules not locally or specify the path to them in grunt? It is necessary for me that in the project folder there are no heavy node js modules, they take up space, hinder the search in the folder, etc.

  • and not globally how to install? - Grundy
  • npm install -g yourmodule. On Windows, they will get up in user / AppData / Roaming / npm - Duck Learns to Take Cover
  • now I go to the cd folder "project folder" next to the npm install team grunt-contrib-concat And it puts this module in my project park in the node_modules folder this module grunt-contrib-concat "project / node_modules / grunt-contrib-concat" - manking
  • one
    And, I understand everything, your problem is how to point the grant to node_modules in another folder. You can make a symlink from the project folder to the real folder with node_modules. Here: docs.npmjs.com/cli/link - Duck Learns to Take Cover
  • 2
    You spend your time on the wrong things. Instead of trying to sculpt crutches with a global installation of modules that need to be installed locally, it is better to configure your IDE so that the node_modules "does not interfere with the search in the folder". - Dmitriy Simushev

0