Posts

npm ERR! Unexpected token } in JSON at position 438325

Error : npm ERR! Unexpected token } in JSON at position 438325 when trying to run "npm install" command in angular CLI getting the below error: npm ERR! Unexpected token } in JSON at position 438325 npm ERR! A complete log of this run can be found in: npm ERR!     C:\Users\Subba\AppData\Roaming\npm-cache\_logs\2019-04-23T13_44_36_571Z-debug.log To resolve this error below are the solutions Solutions:  execute the command "npm cache verify" - which will clear the cache of package.json then re run the "npm install" it will work. If still not working go to manually located angular root folder and delete the "package.json.lock" then re run the "npm install" command. still if you are facing the issue it may be due to proxy settings because when delete the "package.json.lock" it will delete the existing saved proxy settings so re run the proxy setup commands. npm config set proxy <<PROXY_NAME...

Angular setup

Image
In this article going to learn how to install node js and angular cli in windows machine with simple steps. Install Node JS: Spte1: download the Node JS software Before download the node js software check your windows operating system bit version from system properties. you can check system properties by right click on the "My Computer" Once identified the operating system version go to node js website then download the node js software using below url: https://nodejs.org/en/download/ Click on the corresponding link based on the operating system bit version and save it in your local machine. Below are the steps to install the node.js software: After download install in your machine by followed by node js installation steps. Once node.js installation done open command prompt and double check the node js installed or not by run the below command >node -v  or >node -- version The above command displays the version which you installed i...

Angular 2 Vs Angular4

The difference between angular2 and angular4 versions are mainly based the below features Feature Angular2 angular4 Release date end of 2015 23-Mar-17 Architecture MVC design pattern components architecture based Mobile Support Yes Yes Script support < Type script 1.8 > Type script 2.X Animation included in @angular/core came out from @angular/core package and created separate package

5 easy steps to setup angular application

Image