Tim noticed that drush doesn't work when node_modules directory exists.
People say that it's because of the *.info files that some things have
in node_modules and suggested adding a line to the npm postinstall
script to remove any *.info files from there because they aren't really
needed to run stuff. Because we are already doing brower install in the
postinstall script, I broke the postinstall stuff into a separate
script and put both things in there.
--- /dev/null
+find node_modules/ -name '*.info' -type f -delete
+node node_modules/bower/bin/bower install
"karma-jasmine": "~0.3.2"
},
"scripts": {
- "postinstall": "node node_modules/bower/bin/bower install",
+ "postinstall": "bash bin/npm_postinstall.sh",
"test": "node node_modules/karma/bin/karma start tests/karma.conf.js"
}
}