4 ms·
Regarding 1. As far as I know, npm says in it's docs you should add node_modules to your scm because there is no way to install the exact same version through n
by Sgoettschkes 12y ago
Regarding 1. As far as I know, npm says in it's docs you should add node_modules to your scm because there is no way to install the exact same version through npm on different machines. On the other hand, composer has a .lock file which specifies commit hashes it installed on the dev machine, so a composer install installs the exact same commit on every machine.
@OP: You didn't commit the composer.lock. That means that your code might run locally but breaks on another machine because there might be a new version of laravel 4.2
- notduncansmith 12y agoCan you provide a link to that? That's not how npm works at all. You specify dependencies as a dictionary: keys are package names, and values are versions. They support commit hashes, but do not require them. See: https://www.npmjs.org/doc/package.json.html#dependencies https://www.npmjs.org/doc/package.json.html#dependencies
- notaio 12y agohttps://www.npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git https://www.npmjs.org/doc/faq.html#Should-I-check-my-node_mo...