how to add mysql dependency with nodejs

Vivek Modi
Vivek Modi used Ask the Experts™
on
i am trying to run

npm install mysql

command in cmd its giving me these error

npm ERR! Unexpected end of JSON input while parsing near '....tgz"},"engines":{"no'

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2018-05-30T06_49_09_337Z-debug.log
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Swatantra BhargavaTechnical Specialist/Developer

Commented:
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
I am guessing you have a cache issue or there is a problem with the mirror you are using.

I have just tested that package and it is perfectly fine.

Clear your cache and try again.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial