Problem with creating a new Angular application

Asked

Viewed 88 times

2

Hello, good afternoon to all of the community.

Start a new project to develop an application I’m planning to develop, but when you give the command to create a new angular app, which is: ng new my-app (or ng new --g my-app) the following error occurs:

 High            Arbitrary File Overwrite
 Package         tar
 Dependency of   @angular-devkit/build-angular [dev]
 Path            @angular-devkit/build-angular > node-sass > node-gyp > tar
 More info       https://nodesecurity.io/advisories/803

I have tried several ways to solve the problem, but I was not successful. Does anyone know how to solve this problem?

  • lower the Node Latest and update npm with: npm i npm

2 answers

1

Checking on the link that is indicated in the error, the package tar is outdated.

It would be good to try to update the npm or reinstall the package tar through the command npm i tar.

0

Has been corrected for vulnerability.

Delete the foldernode_modules and the package-lock.json,then execute the commands:

  1. npm install
  2. npm audit
  3. npm audit fix
  4. npm audit

Will appear found 0 vulnerabilities, fixed issue.

Browser other questions tagged

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