jonschlinkert / align-text

Align the text in a string.
https://github.com/jonschlinkert
MIT License
52 stars 11 forks source link

JSON Parse error #3

Closed jrock2004 closed 9 years ago

jrock2004 commented 9 years ago

Trying to install node-sass or gulp-sass and getting an error from your plugin

> spawn-sync@1.0.13 postinstall C:\Users\costa\AppData\Roaming\npm\node_modules\node-sass\node_modules\cross-spawn\node_
modules\spawn-sync
> node postinstall

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall" "-g" "node-sass"
npm ERR! node v4.1.0
npm ERR! npm  v2.14.3
npm ERR! file C:\Users\costa\AppData\Roaming\npm-cache\align-text\0.1.3\package\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! No data, empty input at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\costa\AppData\Roaming\npm-cache\align-text\0.1.3\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\costa\Development\Work\VendorNext\VendorNext.Web\npm-debug.log

Any thoughts?

jonschlinkert commented 9 years ago

Try again :) the package should install fine. I see this bug pop up with npm sometimes but it seems to go away within a minute or two usually

jrock2004 commented 9 years ago

Nope, tried it and still same result. I am running windows 10.

doowb commented 9 years ago

Did you try npm cache clear first? I don't have a windows machine to test on, but it looks like npm is pulling down an empty file. It looks fine on mac in node 12.

jrock2004 commented 9 years ago

That did it. had to clear cache

jonschlinkert commented 9 years ago

:+1: