Newsletters 📪
Repository is not clean. Please commit or stash any changes before updating
Repository is not clean. Please commit or stash any changes before updating
Explanation:
This is expected and intentional. The git repository has uncommitted changes. If the changes aren’t committed before the update then there would be a risk that the update may fail (or succeed but leave the application in a broken state) and there may be no easy way to revert the bad changes introduced by the update.
Solution 1:
ng update @angular/cli @angular/core --allow-dirty
If the above solution doesn't work and it's giving error 'Repository is not clean. Update changes will be mixed with pre-existing changes. Using package manager: 'npm' Collecting installed dependencies... Found 0 dependencies. Package '@angular/cli' is not a dependency.'
Solution 2:
ng update @angular/cli @angular/core --allow-dirty --force
How to create a folder in Docker
To create a folder in docker or a file create a directory for the build context and cd into it. You can use the classic mkdir command to create a folder in Docker.
Create Directory if not Exists in DockerFile
To create a Directory that does not exist you have to use the --p command along with the mkdir command. Becausemkdir isn't recursive by default -- it expects the immediate parent directory to exist.
Dockerfile mkdir permission denied
Docker Filesystems and Docker containers work in a similar manner to filesystems outside a Docker container. To provide users read/write/execute permissions use this command chmod 0777 /usr/local/docker/foo
Async Await in Do While Loop
In this post, we are going to checkout Async Await in Do while loop with examples. Do while Loop in Typescript is same as the Do While Loop in Javascript.
Create Canvas Dynamically in Angular
We can use Renderer API to create canvas dynamically in Angular which can be imported from angular/core package. Renderer API allows DOM maniplulation.
Indian Currency Pipe in Angular
Indian currency pipe in Angular, Currency pipe angular without symbol, Angular Currency Pipe is one of the built in pipe in Angular used to format currency value according to given country code,currency,decimal,locale information.
Adding a script to an Angular Library
Adding External Scripts in Angular Library or application. You can add external scripts in angular application on runtime using javascript with few lines of code.
Docker mkdir permission denied Mac
Docker mkdir permission Failed ? For using data volumes in Docker by command-line and If your Docker host is on the Linux platform, you can find Docker volumes by /var/lib/docker/volumes path.
Uninstall angular cli using yarn
To uninstall any package using yarn you have to use the "remove" keyword along with the package name. You can also add in "global" keyword to uninstall the package globally using yarn from your system.
Get User Country & Region using Javascript
It is possible to get a user's country and region just using Javascript without any third party Library. You can use this simple and Free Javascript Method to get User's Country and Region.