1
votes

I am new to nodejs and while trying to install express using command npm install express --save, it showed the following error-

npm ERR! Unexpected end of JSON input while parsing near '...NS32nytG/grOSzaMcv/L3'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Upwn\AppData\Roaming\npm-cache_logs\2020-06-05T03_36_28_496Z-debug.log

1
try updating node and npm once . make sure to use latest version. Or try reinstalling node.Kiba

1 Answers

1
votes

I had a similar issue. Trynpm cache clean --force. and then run npm install express --save.It solved my issue.