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

npm install: failed to parse package.json #70

Closed
DennisAhaus opened this Issue Aug 11, 2014 · 10 comments

Comments

Projects
None yet
10 participants
@DennisAhaus

DennisAhaus commented Aug 11, 2014

Just wanted to install event-stream via npm with command:
npm install event-stream -g
but i only got the same error:

`$ npm install event-stream -g
npm ERR! Failed to parse json
npm ERR! Unexpected end of input
npm ERR! File: C:\Users\myUser\AppData\Roaming\npm-cache\stream-combiner\0.0.4\package\package.jso
n
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! System Windows_NT 6.1.7601
npm ERR! command "c:\dev\nodejs\node.exe" "c:\dev\nodejs\node_modules\npm\bin\npm-cli.js" "
install" "event-stream" "-g"
npm ERR! cwd z:\myService
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! file C:\Users\myUser\AppData\Roaming\npm-cache\stream-combiner\0.0.4\package\package.json

npm ERR! code EJSONPARSE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! z:\myService\npm-debug.log
npm ERR! not ok code 0`

@dominictarr

This comment has been minimized.

Owner

dominictarr commented Aug 12, 2014

this works fine for me - can you try this again?

@nmccready

This comment has been minimized.

nmccready commented Aug 22, 2014

For me my /Users/{username}/.npm/* must have been corrupted . Blowing away the directory resolved the issue!

@DennisAhaus

This comment has been minimized.

DennisAhaus commented Jul 15, 2015

Thx for hints. After npm cache clean everything works. My fault 👍

@vanishcode

This comment has been minimized.

vanishcode commented Jun 7, 2017

For npm@5 ,npm cache clean --force works.

@rajkuttie

This comment has been minimized.

rajkuttie commented Jun 21, 2017

Don't put any comment line on package.json File

@EmadAdly

This comment has been minimized.

EmadAdly commented Jun 22, 2017

can you try this npm cache verify

@varunrajasekhar

This comment has been minimized.

varunrajasekhar commented Aug 29, 2017

try running "npm init" in your root folder i.e. Eg: C:\Apps\reactApp

@ryanmalone

This comment has been minimized.

ryanmalone commented Sep 8, 2017

npm cache clean did it for me too!

@MrAurochs

This comment has been minimized.

MrAurochs commented Jan 6, 2018

The npm cache verify, npm cache clean stuff did not work for me at all.

@hkirkan

This comment has been minimized.

hkirkan commented Jan 31, 2018

first install with
npm install -g ionic
and create new project this code ionic start MyApp -tabs
and using arrow select "tabs" and press enter will ask a question and press 'Y' press enter
okey?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment