Problems when creating projects and run projects

Hello, I have a big problem when creating a project, I am a newbie in the Ionic world and I use Debian 10.
The problem is to create the project with sudo, this project fails in the creation with several errors in sass and even tells me to execute npm audit fix which when executed does not solve anything. However, when you log in as a root, everything runs normally, you can even run ionic serve and work without problems.
Any solution to the problem? the folder where I leave the project is directly in my Home so the permissions in the directory should not exist.
PD: Running the audit fix as root does not resolve the errors but can work normally

Use after the command :

–unsafe-perm=true - - allow-root=true,

Eg: npm i unsafe-perm=true - - allow-root=true

1 Like