Skip to content
Benjamin Lupton edited this page Mar 19, 2016 · 1 revision

Cyclic dependencies would fail in npm version 1 and earlier. If you have cyclic dependencies and require support for npm v1, do the following:

  1. Add our cyclic.js file to your project:

    wget -N https://raw.githubusercontent.com/bevry/base/8e02232ad83059e79adc4c6976a55d929cd9bdd3/cyclic.js
  2. Get it to run on the npm preinstall script, by adding the following your package.json:

    {
    	"scripts": {
    		"preinstall": "node cyclic.js"
    	}
    }
Clone this wiki locally