Last Updated: February 25, 2016
·
1.046K
· jamischarles

Installing devdeps with npm

This is something that burned me today. (Using node 0.10.24, npm 1.3.14)

//does NOT install devdependencies
$ NODE_ENV=production npm install

//does NOT install devdependencies
$ NODE_ENV=development npm install --production

//DOES install devdeps
$ NODE_ENV=development npm install

https://npmjs.org/doc/misc/npm-config.html#production