Installing Babel-cli and live-server locally

Asked

Viewed 43 times

0

I am installing Babel-cli and live-server locally, however, it is giving a problem saying that:

run `npm audit fix` to fix 3 of them.
1 vulnerability requires manual review. See the full report for details.

When I write npm Audit, it appears this.

inserir a descrição da imagem aqui

The problem that causes me is because when I enter the package.json I was going to be in the department of Abel-cli and live-server, and it’s not, I click to save the file, and it tells me to compare the file that was meant to be. I see the comparison and to be seen that has the dependencies that I wanted, I try to do manually and there is no way.

inserir a descrição da imagem aqui On the left where there are the red lines would be the file that was meant to be, and on the right side, my current file.

  • Use the latest version of the dependencies. Reason: https://www.npmjs.com/advisories/786

1 answer

0


Upgrading! I uninstall Babel-cli and live-server using the command:

npm uninstall babel-cli live-server

And when installing again I used the installation command along with the --save-dev flag, thus:

npm install [email protected] [email protected] --save-dev

Finally managing to install in package.json thus staying with the dependencies and devDependencies inserir a descrição da imagem aqui

Browser other questions tagged

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