So my structure is the angular project is like this project
- project/my-lib
- src/app
- package.json
I have created lib called my-lib it is used in app so i have it as dependency in package.json file
"dependencies": {
"my-lib": "file:dist/my-lib",
}
When i run npm install in the root of the project i get
"npm ERR! Could not install from "..\dist\my-lib" as it does not contain a package.json file.
Here is example project on git https://github.com/IvanGavlik/AngularTest. You will get same exception when you run npm install
Also when i try to build lib
ng build my-lib
I get
An unhandled exception occurred: Cannot find module '@angular-devkit/build-ng-packagr/package.json'
Note I am using angular 9 and i do not want to publish my libaray