When I run "npm install grunt", grunt installs into the local dir fine and within seconds.
If I have a package.json with grunt as a devDependency and run "npm install --dev" I see many warnings at first about other packages, which I assume grunt depends on. Specifically, errors about packages being in both the dependencies and devDependencies list. Eventually, I just start seeing tons of errors that say "attempt to lock file which hasn't been locked".
Why does "npm install grunt" work fine but "npm install --dev" have all these problems? Is there a difference between the two?
package.json:
{
"name": "myApp",
"version": "0.0.0",
"devDependencies": {
"grunt": "^0.4.1"
}
}