Installation of dependencies on npm start but not finish

Asked

Viewed 1,367 times

1

I’m taking a course and accompanying a book of Nodejs. In the book I am asked to install the *Express and Babel, already in the course ask to install dependencies of an application that they make available.

My problem is this:

In both cases when I go to do the installation they begin but do not finish.

Follow the print attachments and link to the book project directory.

Prints Book:

erro ao tentar instalar o babel

Prints Curso:

erro ao tentar instalar as dependências do backend erro ao tentar instalar as dependências do frontend

  • As there was no mistake, I think the problem is your terminal. Have you tried to press any key? At the Windows terminal I had this problem of getting stuck until I hit any key. Hit ENTER and tell me. If you still have a problem, comment on how Voce installed the Node.

  • Yes, but it didn’t work.

  • I downloaded Node.js from the same site and installed version 6.10.0 LTS

  • How long have you waited? Maybe it’s just waiting.

  • I waited around 20 to 30 minutes

  • Will q is not some network problem?

Show 1 more comment

1 answer

1

The module babel was replaced by babel-cli, so you should install Babel using this command:

npm install --save babel-cli or npm i -S babel-cli

  • Okay, thank you I managed to do the installation.

  • Could you help me with one more thing? When I do the installation of dependencies by npm i, it always takes a long time and on the dependecia side appears the message checking installable status, would you tell me why this happens? I’ve waited a few hours and nothing happens

  • This could be some kind of network restriction, a thread opened on github about it. If vc are using windows, it might be some firewall configuration.

  • I’ve disabled the windows firewall and still have the same problem.

  • you would have some other solution?

  • There is an alternative to npm that makes the installation of modules differently and faster, but fully compatible with qq Node project, it is called Yarn. He’s basically a cli over npm, but with a few more things.

Show 1 more comment

Browser other questions tagged

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