Are there simple or subtle reasons that package.json
would not update after running a --save-dev? This is my command:
npm install modulename --save-dev
Run from the root of the project. The command succeeds, the new module shows up in the node_modules directory as expected. Help would be appreciated. I am using npm v 1.4.28
The entirety of my current package.json
is:
{
"name": "FooWeb",
"version": "1.0.0",
"description": "Foo Web",
"devDependencies": {
"gulp": "3.8.11",
"gulp-jshint": "1.9.2",
"gulp-concat": "2.5.2",
"gulp-sass": "1.3.3",
"gulp-sourcemaps": "1.4.0",
"gulp-watch": "4.1.1"
}
}
I do get warnings on install of a package that I have no repository field or README, but I think that is not related.
npm ls
pretty neat! in my case it outputs a green extraneous label in the tree for the module, and then errors withERR! extraneous: [email protected]. [path]
I will keep troubleshooting down this path too – Brian Muenzenmeyer--save
worked for me (stackoverflow.com/a/37603531/470749) – Ryan