Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Parse error #3

Closed
jrock2004 opened this issue Sep 23, 2015 · 5 comments
Closed

JSON Parse error #3

jrock2004 opened this issue Sep 23, 2015 · 5 comments

Comments

@jrock2004
Copy link

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
Copy link
Owner

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
Copy link
Author

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

@doowb
Copy link
Collaborator

doowb commented Sep 23, 2015

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
Copy link
Author

That did it. had to clear cache

@jonschlinkert
Copy link
Owner

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants