I have noticed that I have a local and global angular/cli package installed.
When angular/cli local package is used compared to global one ?
I have noticed that I have a local and global angular/cli package installed.
When angular/cli local package is used compared to global one ?
local package will used from angular cli self. If you using ng on a terminal the global installation is used. To building by typescript files, i using the local cli installation.
( local installation ) e.g.
wayne@bruce...PC:~/Desktop/myFirstApp$ ng serve -o
If you execute it through npm cmd like
wayne@bruce...PC:~/Desktop/myFirstApp$ npm start
and in package.json something like this
"scripts": {
"ng": "ng",
"start": "ng serve -o",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"deploy": "ng deploy",
"build:stats": "ng build --stats-json",
"analyze": "webpack-bundle-analyzer dist/app/stats-es2015.json"}
Then it will look into node_modules folder i.e. local installation
In both cases same cmd will be executed.