Skip to content

Can not install angular-cli on Ubuntu 18.04 #14684

@meightythree

Description

@meightythree

🐞 Bug report

Command (mark with an x)

I guess it affects "all" because I couldn't even install the cli.

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

It isntalls with 7.x version

Yes, the previous version in which this bug was not present was: ....

Description

Using the angular cli installation command: sudo npm install -g @angular/cli

I get this error: https://pastebin.com/aqDXNBM0

There's no such file '/home/user/.angular-config.json', I have tried creating it by the 'touch' command, but it gave another error: https://pastebin.com/xZNQUwAa

I have tried 'npm cache clean --force' command with the same results.

I tried to install a previous verison of Angular with the 'sudo npm install -g @angular/cli@7.x' and it installed it however it throws "Workspace needs to be loaded before it is used.", I guess it's because of the angular-config.json I've created...

A clear and concise description of the problem...

🔬 Minimal Reproduction

sudo npm i -g @angular/cli

🔥 Exception or Error

I have linked the errors above.





🌍 Your Environment



Couldn't run ng version with angular 8.x

ng version with 7.x
Angular CLI: 7.3.9
Node: 12.4.0
OS: linux x64
Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.9
@angular-devkit/core         7.3.9
@angular-devkit/schematics   7.3.9
@schematics/angular          7.3.9
@schematics/update           0.13.9
rxjs                         6.3.3
typescript                   3.2.4



Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions