The best programming blog.

Covering a wide array of programming topics.

NPM You cannot publish over the previously published versions

Error: While running the npm publish command you are getting the following issue: Problem: You are trying to publish the npm package with the same version which is already published. Solution: Get the latest version which is published for the package from npm site and add an incremented version of the same in version property…More

Check permissions with ls command in Ubuntu

You need to run the ls command with la attribute to get the permissions of a folder in Ubuntu: Navigate to the folder for which you want to check the permissions and then run ls -la command. You will get the output like this: The first column represents the permissions.More

npm 403 Forbidden – PUT You do not have permission to publish

Error: Solution: For the first time users the error could be because you have not verified the email registered in npm account. Second, reason could be that the package name which you are trying to push is already taken. You need to enter a unique package name in “name” field of your package.json.More

CloudWatch modify disk usage alert value

Goal: To modify the the alert value for the disk usage in CloudWatch. Let’s say you want to modify the disk usage value to be 80% for alerts to be triggerd. Follow the below mentioned steps to do the same: Go to AWS Console dashboard. Navigate to AWS CloudWatch dashboard. Go to Alarms >> All…More

angular editor missing icons

Error: Getting 404 for all the web fonts woff woff2 ttf files for angular editor. Solution: Add the following section in assets configuration in angular.json file of your project: The complete section will look like this: Running ng build will have the font awesome files copied to the dist folder at following path: /dist/assets/fonts. The…More

Webfonts woff ttf 404 on nginx

Error: Getting 404 for woff woff2 and ttf files on nginx server on Ubuntu Solution: Go to your config file for your site: /etc/nginx/sites-available/yoursite.com Add the follwong section in that file: Restart the nginx service following How to restart nginx service on UbuntuMore