Error Installing Dependencies in NODE Project

Asked

Viewed 75 times

0

I’m having trouble with an Ode application. When I try to install packages, dependencies generate an error when I try to install express. follows the error:

npm ERR! Unexpected end of JSON input

npm ERR! A complete log of this run can be found in: npm ERR!
C: Users Development Appdata Roaming npm-cache_logs 2018-03-28T14_41_03_239Z-debug.log

Someone’s been there, they could help me?

  • 1
    1. What is the log file reported in the message saying? 2. Unexpected end of JSON input is an error that occurs when trying to parse a poorly formed JSON, most likely this is not an error with express. Check your package.json, it may not be correct.
  • 1

    Thanks Renato Gama, I managed to solve the problem, there was a syntax problem in my package, thanks for the help!

  • Probably your package.json has some syntax error. Make sure everything is all right in it, and just in case remove the folder from node_modules.

  • checks package.json, this error indicates that it has formatting error there

No answers

Browser other questions tagged

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