AngularCLI serving problem on Ubuntu 16.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I've already installed AngularCLI with npm and then I try serving ng serve --open
in the terminal. But the terminal shows an empty screen and then does nothing.
What can I do to serve my Angular app?
nodejs npm javascript
add a comment |Â
up vote
0
down vote
favorite
I've already installed AngularCLI with npm and then I try serving ng serve --open
in the terminal. But the terminal shows an empty screen and then does nothing.
What can I do to serve my Angular app?
nodejs npm javascript
Problem solved! It was because ofnpm
permissions and It must besudo npm
â El.
Jul 30 at 23:55
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've already installed AngularCLI with npm and then I try serving ng serve --open
in the terminal. But the terminal shows an empty screen and then does nothing.
What can I do to serve my Angular app?
nodejs npm javascript
I've already installed AngularCLI with npm and then I try serving ng serve --open
in the terminal. But the terminal shows an empty screen and then does nothing.
What can I do to serve my Angular app?
nodejs npm javascript
edited Jul 30 at 22:47
asked Apr 24 at 11:02
![](https://lh5.googleusercontent.com/-yWAJXJjOU58/AAAAAAAAAAI/AAAAAAAAACI/Zy_kZ-Qup78/photo.jpg?sz=32)
![](https://lh5.googleusercontent.com/-yWAJXJjOU58/AAAAAAAAAAI/AAAAAAAAACI/Zy_kZ-Qup78/photo.jpg?sz=32)
El.
13
13
Problem solved! It was because ofnpm
permissions and It must besudo npm
â El.
Jul 30 at 23:55
add a comment |Â
Problem solved! It was because ofnpm
permissions and It must besudo npm
â El.
Jul 30 at 23:55
Problem solved! It was because of
npm
permissions and It must be sudo npm
â El.
Jul 30 at 23:55
Problem solved! It was because of
npm
permissions and It must be sudo npm
â El.
Jul 30 at 23:55
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
What you seem to have installed is the ng
command from ng-common
, which is an emacs-like command-line editor, not the Angular CLI.
Anyway, the Angular CLI is for Angular 2 or newer only, not for the old AngularJS. AngularJS is just a JavaScript library you include in your html, not the whole build framework Angular (2 or newer) provides.
You'd have to serve your project files with a regular web server.
I'd already installed Angular CLI with the instruction provided by their official website, what I'm taking about is the last step when i want to serve my-App
â El.
Apr 26 at 8:32
If you use AngularJS ("Angular 1") and not Angular (2 or newer), you can not use the Angular CLI. And the screenshot you provided is not the Angular CLI'sng
command, but what I said in my answer. There is no specific way to serve an AngularJS project, because it's just a simple web page with HTML, CSS and JavaScript, where no preprocessing, transpiling or bundling of the sources is required. You can either try opening the html file directly from the disk in your browser, but that might mess up URL paths, or you need to install any server application.
â Byte Commander
Apr 26 at 9:07
I still have that old problem in ubuntu, I install angular 6 and also ng-common and issue is the same as it was before
â El.
Jul 30 at 22:53
You shall not install theng-common
package. As I said in my answer, this is an editor, and completely unrelated to Angular. Remove it withsudo apt purge ng-common
to avoid confusion. You must install the correct npm package withnpm install -g @angular/cli
, as described on cli.angular.io.
â Byte Commander
Jul 31 at 7:27
Ok, it wasn't aboutng
orng-common
hopefully. it was because ofnpm install -g @angular/cli
, it must besudo npm install -g @angular/cli
actually. thanks
â El.
Aug 1 at 1:10
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
What you seem to have installed is the ng
command from ng-common
, which is an emacs-like command-line editor, not the Angular CLI.
Anyway, the Angular CLI is for Angular 2 or newer only, not for the old AngularJS. AngularJS is just a JavaScript library you include in your html, not the whole build framework Angular (2 or newer) provides.
You'd have to serve your project files with a regular web server.
I'd already installed Angular CLI with the instruction provided by their official website, what I'm taking about is the last step when i want to serve my-App
â El.
Apr 26 at 8:32
If you use AngularJS ("Angular 1") and not Angular (2 or newer), you can not use the Angular CLI. And the screenshot you provided is not the Angular CLI'sng
command, but what I said in my answer. There is no specific way to serve an AngularJS project, because it's just a simple web page with HTML, CSS and JavaScript, where no preprocessing, transpiling or bundling of the sources is required. You can either try opening the html file directly from the disk in your browser, but that might mess up URL paths, or you need to install any server application.
â Byte Commander
Apr 26 at 9:07
I still have that old problem in ubuntu, I install angular 6 and also ng-common and issue is the same as it was before
â El.
Jul 30 at 22:53
You shall not install theng-common
package. As I said in my answer, this is an editor, and completely unrelated to Angular. Remove it withsudo apt purge ng-common
to avoid confusion. You must install the correct npm package withnpm install -g @angular/cli
, as described on cli.angular.io.
â Byte Commander
Jul 31 at 7:27
Ok, it wasn't aboutng
orng-common
hopefully. it was because ofnpm install -g @angular/cli
, it must besudo npm install -g @angular/cli
actually. thanks
â El.
Aug 1 at 1:10
add a comment |Â
up vote
0
down vote
What you seem to have installed is the ng
command from ng-common
, which is an emacs-like command-line editor, not the Angular CLI.
Anyway, the Angular CLI is for Angular 2 or newer only, not for the old AngularJS. AngularJS is just a JavaScript library you include in your html, not the whole build framework Angular (2 or newer) provides.
You'd have to serve your project files with a regular web server.
I'd already installed Angular CLI with the instruction provided by their official website, what I'm taking about is the last step when i want to serve my-App
â El.
Apr 26 at 8:32
If you use AngularJS ("Angular 1") and not Angular (2 or newer), you can not use the Angular CLI. And the screenshot you provided is not the Angular CLI'sng
command, but what I said in my answer. There is no specific way to serve an AngularJS project, because it's just a simple web page with HTML, CSS and JavaScript, where no preprocessing, transpiling or bundling of the sources is required. You can either try opening the html file directly from the disk in your browser, but that might mess up URL paths, or you need to install any server application.
â Byte Commander
Apr 26 at 9:07
I still have that old problem in ubuntu, I install angular 6 and also ng-common and issue is the same as it was before
â El.
Jul 30 at 22:53
You shall not install theng-common
package. As I said in my answer, this is an editor, and completely unrelated to Angular. Remove it withsudo apt purge ng-common
to avoid confusion. You must install the correct npm package withnpm install -g @angular/cli
, as described on cli.angular.io.
â Byte Commander
Jul 31 at 7:27
Ok, it wasn't aboutng
orng-common
hopefully. it was because ofnpm install -g @angular/cli
, it must besudo npm install -g @angular/cli
actually. thanks
â El.
Aug 1 at 1:10
add a comment |Â
up vote
0
down vote
up vote
0
down vote
What you seem to have installed is the ng
command from ng-common
, which is an emacs-like command-line editor, not the Angular CLI.
Anyway, the Angular CLI is for Angular 2 or newer only, not for the old AngularJS. AngularJS is just a JavaScript library you include in your html, not the whole build framework Angular (2 or newer) provides.
You'd have to serve your project files with a regular web server.
What you seem to have installed is the ng
command from ng-common
, which is an emacs-like command-line editor, not the Angular CLI.
Anyway, the Angular CLI is for Angular 2 or newer only, not for the old AngularJS. AngularJS is just a JavaScript library you include in your html, not the whole build framework Angular (2 or newer) provides.
You'd have to serve your project files with a regular web server.
answered Apr 24 at 11:57
![](https://i.stack.imgur.com/m8DYH.jpg?s=32&g=1)
![](https://i.stack.imgur.com/m8DYH.jpg?s=32&g=1)
Byte Commander
59.2k26158267
59.2k26158267
I'd already installed Angular CLI with the instruction provided by their official website, what I'm taking about is the last step when i want to serve my-App
â El.
Apr 26 at 8:32
If you use AngularJS ("Angular 1") and not Angular (2 or newer), you can not use the Angular CLI. And the screenshot you provided is not the Angular CLI'sng
command, but what I said in my answer. There is no specific way to serve an AngularJS project, because it's just a simple web page with HTML, CSS and JavaScript, where no preprocessing, transpiling or bundling of the sources is required. You can either try opening the html file directly from the disk in your browser, but that might mess up URL paths, or you need to install any server application.
â Byte Commander
Apr 26 at 9:07
I still have that old problem in ubuntu, I install angular 6 and also ng-common and issue is the same as it was before
â El.
Jul 30 at 22:53
You shall not install theng-common
package. As I said in my answer, this is an editor, and completely unrelated to Angular. Remove it withsudo apt purge ng-common
to avoid confusion. You must install the correct npm package withnpm install -g @angular/cli
, as described on cli.angular.io.
â Byte Commander
Jul 31 at 7:27
Ok, it wasn't aboutng
orng-common
hopefully. it was because ofnpm install -g @angular/cli
, it must besudo npm install -g @angular/cli
actually. thanks
â El.
Aug 1 at 1:10
add a comment |Â
I'd already installed Angular CLI with the instruction provided by their official website, what I'm taking about is the last step when i want to serve my-App
â El.
Apr 26 at 8:32
If you use AngularJS ("Angular 1") and not Angular (2 or newer), you can not use the Angular CLI. And the screenshot you provided is not the Angular CLI'sng
command, but what I said in my answer. There is no specific way to serve an AngularJS project, because it's just a simple web page with HTML, CSS and JavaScript, where no preprocessing, transpiling or bundling of the sources is required. You can either try opening the html file directly from the disk in your browser, but that might mess up URL paths, or you need to install any server application.
â Byte Commander
Apr 26 at 9:07
I still have that old problem in ubuntu, I install angular 6 and also ng-common and issue is the same as it was before
â El.
Jul 30 at 22:53
You shall not install theng-common
package. As I said in my answer, this is an editor, and completely unrelated to Angular. Remove it withsudo apt purge ng-common
to avoid confusion. You must install the correct npm package withnpm install -g @angular/cli
, as described on cli.angular.io.
â Byte Commander
Jul 31 at 7:27
Ok, it wasn't aboutng
orng-common
hopefully. it was because ofnpm install -g @angular/cli
, it must besudo npm install -g @angular/cli
actually. thanks
â El.
Aug 1 at 1:10
I'd already installed Angular CLI with the instruction provided by their official website, what I'm taking about is the last step when i want to serve my-App
â El.
Apr 26 at 8:32
I'd already installed Angular CLI with the instruction provided by their official website, what I'm taking about is the last step when i want to serve my-App
â El.
Apr 26 at 8:32
If you use AngularJS ("Angular 1") and not Angular (2 or newer), you can not use the Angular CLI. And the screenshot you provided is not the Angular CLI's
ng
command, but what I said in my answer. There is no specific way to serve an AngularJS project, because it's just a simple web page with HTML, CSS and JavaScript, where no preprocessing, transpiling or bundling of the sources is required. You can either try opening the html file directly from the disk in your browser, but that might mess up URL paths, or you need to install any server application.â Byte Commander
Apr 26 at 9:07
If you use AngularJS ("Angular 1") and not Angular (2 or newer), you can not use the Angular CLI. And the screenshot you provided is not the Angular CLI's
ng
command, but what I said in my answer. There is no specific way to serve an AngularJS project, because it's just a simple web page with HTML, CSS and JavaScript, where no preprocessing, transpiling or bundling of the sources is required. You can either try opening the html file directly from the disk in your browser, but that might mess up URL paths, or you need to install any server application.â Byte Commander
Apr 26 at 9:07
I still have that old problem in ubuntu, I install angular 6 and also ng-common and issue is the same as it was before
â El.
Jul 30 at 22:53
I still have that old problem in ubuntu, I install angular 6 and also ng-common and issue is the same as it was before
â El.
Jul 30 at 22:53
You shall not install the
ng-common
package. As I said in my answer, this is an editor, and completely unrelated to Angular. Remove it with sudo apt purge ng-common
to avoid confusion. You must install the correct npm package with npm install -g @angular/cli
, as described on cli.angular.io.â Byte Commander
Jul 31 at 7:27
You shall not install the
ng-common
package. As I said in my answer, this is an editor, and completely unrelated to Angular. Remove it with sudo apt purge ng-common
to avoid confusion. You must install the correct npm package with npm install -g @angular/cli
, as described on cli.angular.io.â Byte Commander
Jul 31 at 7:27
Ok, it wasn't about
ng
or ng-common
hopefully. it was because of npm install -g @angular/cli
, it must be sudo npm install -g @angular/cli
actually. thanksâ El.
Aug 1 at 1:10
Ok, it wasn't about
ng
or ng-common
hopefully. it was because of npm install -g @angular/cli
, it must be sudo npm install -g @angular/cli
actually. thanksâ El.
Aug 1 at 1:10
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027763%2fangularcli-serving-problem-on-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Problem solved! It was because of
npm
permissions and It must besudo npm
â El.
Jul 30 at 23:55