Access permissions on Ubuntu in Angular project

Asked

Viewed 315 times

0

I’m having trouble accessing the files generated by ng new. The problem already starts that I can’t execute the command without the sudo in front.

After all Angular folders are generated, the folder is locked for my user, gets a lock, and I am the only user of the machine.

When opening the project folder in Vscode and trying to save something always appears a pop-up asking you to try as root (as an attachment).

I’ve tried everything chmod that I saw on the Linux forums, I tried to change my user’s permission in the file passwd but nothing happens.

I don’t know if I did something wrong during the installation or if I changed something during the actual use.

In case anyone who’s ever had this problem and can help me, I’m very grateful.

Note: If you think that here is not the right place to ask this question, I delete and go to the forums themselves.

Version of my Ubuntu: 18.04.2 LTS.

Edit 1: I tried to also run Vscode as root, but then it comes without all my extensions.

Pop-up para permissão no VSCode

  • And if you click on [retry as sudo] works?

  • Yes, right after you ask for my password and go quietly. But think about the work that comes with you typing fast and you have to save, then click on the box, put the password and when you see, forgot a semicolon in the CSS. Then you have to do it all over again just for one character... it doesn’t make sense.

1 answer

0


SOLUTION

I ended up screwing up and had to reinstall Ubuntu. Hence I redone the whole process of installing Node/npm and angular-cli without using sudo. Now working normal. I can create the project, change and save in real time that does not keep asking for permission.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.