Error installing Babel npm package in my project

Asked

Viewed 145 times

1

I am trying to install the Babel package in my project. But while running the command: npm install --save-dev Babel-cli, an error occurs in the installation of tar.unpack. See in the image:

inserir a descrição da imagem aqui

I tried to update npm, update nodejs and clear the cache. But none of that solved. If anyone’s been there and can help me I’d be grateful!

  • Already tested install globally? com -g?

  • @Sergio, I ended up discovering the error. I was trying to install it through the git prompt and it seems that the correct one is to use the nodejs prompt. when doing by nodejs prompt worked. But thanks for the tip! ;)

  • Okay, in that case put an answer. It may be useful to more people.

  • All right! I’ll post!

1 answer

1


Solved the problem! I was trying to install the Babel package by the git prompt. And it seems that this didn’t work.

But redoing the same process using the Nodejs prompt worked.

In case someone has this problem! ;)

Browser other questions tagged

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