tested on node 13.10.1
I'm installing some Angular Libraries+schematics (written by me) via ng add
command. The libraries are added to the package.json
but not to the package-lock.json
.
When I try to serve my project, I got an error message for the libraries peerDependecies
not satisfied.
- I run
npm i <missingpackages...>
- I run
ng serve
Then I got a new error, the Angular libraries I installed before are now vanished. Only their scope folder is left (@my-corp)
- Then I re-run
npm i <libraries...>
, ng-serve
And everything works fine (the libraries has been added to the package-lock.json
too).
Can anyone explains me this weird behaviour?