Unexpected end of JSON input while parsing near '...ptimist":"0.2","throu'

Hi,
When I try to “npm install”, I get this, after many “npm WARN tar ENOENT” :
npm ERR! Unexpected end of JSON input while parsing near ‘…ptimist":“0.2”,"throu’

Check the nvm version with nvm -version

npm version is 6.9.0

Hi @Philippe_37234,

Thanks for the note, I’m sorry you’ve had this issue. Have you tried cleaning the npm cache? You can do so with the following command:

npm cache clean --force

You should re-run npm install after cleaning the cache. Let me know if this helps.

Matt

after reinstalling, here’s the status :
npm WARN server@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

added 946 packages from 1192 contributors and audited 41504 packages in 136.534s
found 762 vulnerabilities (124 low, 627 moderate, 11 high)

After fixing this, it runs well .
Thanks Matt :grinning:

1 Like

Good to hear @Philippe_37234! Good luck in the rest of the course.