problem istalling packages


#1

Installing “emmet@2.4.3” failed.Hide output…

npm ERR! Windows_NT 10.0.17134
npm ERR! argv “C:\Users\Owner\AppData\Local\atom\app-1.29.0\resources\app\apm\bin\node.exe” “C:\Users\Owner\AppData\Local\atom\app-1.29.0\resources\app\apm\node_modules\npm\bin\npm-cli.js” “–globalconfig” “C:\Users\Owner\.atom\.apm\.apmrc” “–userconfig” “C:\Users\Owner\.atom\.apmrc” “install” “C:\Users\Owner\AppData\Local\Temp\d-11871-1864-1uitnjf.jtqcvrt3xr\package.tgz” “–runtime=electron” “–target=2.0.5” “–arch=x64” “–global-style”
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! file C:\Users\Owner.atom.apm\atom-space-pen-views\2.2.0\package\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token ‘\u0000’ at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\Owner.atom.apm\atom-space-pen-views\2.2.0\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Owner\AppData\Local\Temp\apm-install-dir-11871-1864-1np215s.v2alucjtt9\npm-debug.log


#2

Does this happen with every package or just emmet?

Try deleting the folder C:\Users\Owner\.atom\.apm. It’s just a cache folder, so it can be freely deleted.