i clone a project with git, the project was create with ionic 2 but when i execute the command for re-create the node_modules folder i get this error.
npm instal
Removing package-lock.json should be the last resort, at least for projects that have reached production status. After having the same error as described in this question, I found that my package-lock.json was corrupt, even though it was generated. One of the packages had itself as an empty dependency, in this example jsdoc:
"jsdoc": {
"version": "x.y.z",
. . . . . .
"dependencies": {
. . . . . ,
"jsdoc": {},
"taffydb": {
. . . . .
Please note I have omitted irrelevant parts of the code in this example.
I just removed the empty dependency "jsdoc": {}, and it was OK again.