Node npm windows file paths are too long to install packages

后端 未结 9 1464
野性不改
野性不改 2020-11-29 17:58

Situation

I want to use gulp and related front-end tool chains in Windows-hosted development environments. I\'m hitting a wall trying to use gulp pl

9条回答
  •  攒了一身酷
    2020-11-29 18:44

    This is a work around solution.

    There are some node modules that flattens your dependencies for you.
    Links are here:

    • npm-flatten
    • npm-dedupe

    What these modules are doing can be done manually as well. This is the only real solution exists as of now, i.e to have all your modules at a single level, requiring each other, instead of all having private copies of their dependencies nested deeply.

提交回复
热议问题