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 event-stream --> npm ERR! code EJSONPARSE #86

Closed
DennisAhaus opened this Issue May 5, 2015 · 14 comments

Comments

Projects
None yet
6 participants
@DennisAhaus

DennisAhaus commented May 5, 2015

$ npm install --save https://github.com/dominictarr/event-stream/tarball/master
npm WARN package.json deliveryapp2@0.0.0 keywords should be an array of strings
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\dev\iojs\node.exe" "c:\dev\iojs\node_modules\npm\bin\npm-cli.js" "install
" "--save" "https://github.com/dominictarr/event-stream/tarball/master"
npm ERR! node v1.8.1
npm ERR! npm v2.8.3
npm ERR! file C:\Users\ahausden\AppData\Roaming\npm-cache\stream-combiner\0.0.4\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\ahausden\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! Please include the following file with any support request:

@dominictarr

This comment has been minimized.

Owner

dominictarr commented May 5, 2015

this was probably just a network error. does it still happen? why do you want to install from the tarball when you can use the registry?

@DennisAhaus

This comment has been minimized.

DennisAhaus commented May 6, 2015

My first try was install via npm --> npm install --save event-stream but this results in same error.

Just now tried again with command npm install --save event-stream --> same error.
After that tried command npm install --save string --> works

@dominictarr

This comment has been minimized.

Owner

dominictarr commented May 6, 2015

that is very strange. it worked for me. what version of npm are you using?

@dominictarr

This comment has been minimized.

Owner

dominictarr commented May 6, 2015

aha, I see in your error message it you are using npm@2.8.3
I installed event stream successfully with 2.9.0

hmm, looking at your log it looks like the problem is actually in stream-combiner... I'm guessing that it half downloaded stream-combiner and you do not have a valid stream-combiner tarball.

bet you this fixes it: rm -rf ~/npm-cache/stream-combiner

@DennisAhaus

This comment has been minimized.

DennisAhaus commented Jun 3, 2015

Thx for your help. Now it works 👍

@JaganJonnala

This comment has been minimized.

JaganJonnala commented Apr 29, 2016

Hi, How i can use the above command it showing "rm is not an operable command"

@JaganJonnala

This comment has been minimized.

JaganJonnala commented Apr 29, 2016

image

@JaganJonnala

This comment has been minimized.

JaganJonnala commented Apr 29, 2016

Getting this error anyone Help me Please. @dominictarr

@dominictarr

This comment has been minimized.

Owner

dominictarr commented May 2, 2016

@JaganJonnala this is not because of event-stream, the error message says that it couldn't parse the package.json for inflight

@dominictarr

This comment has been minimized.

Owner

dominictarr commented May 2, 2016

@JaganJonnala I'd suggest posting the issue on gulp, and trying to install the things that are installed when you install gulp to try and figure out the thing which is broken.

@cmtp1111

This comment has been minimized.

cmtp1111 commented Dec 10, 2017

C:\Users\Charlie\Desktop\advanced-css-course-master\Natours\new css>npm run compile:sass
npm ERR! file C:\Users\Charlie\Desktop\advanced-css-course-master\Natours\new css\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected string in JSON at position 214 while parsing '{
npm ERR! "name": "advanced-css-course-master"'
npm ERR! File: C:\Users\Charlie\Desktop\advanced-css-course-master\Natours\new css\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! Tell the package author to fix their package.json file. JSON.parse

@cmtp1111

This comment has been minimized.

cmtp1111 commented Dec 10, 2017

other error that im getting now

C:\Users\Charlie\Desktop\advanced-css-course-master\Natours\new css>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See npm help json for definitive documentation on these fields
and exactly what they do.

Use npm install <pkg> afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "new css": Tags may not have any characters that encodeURIComponent encodes.
About to write to C:\Users\Charlie\Desktop\advanced-css-course-master\Natours\new css\package.json:

{
"name": "",
"version": ""
}

Is this ok? (yes)
npm ERR! Callback called more than once.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Charlie\AppData\Roaming\npm-cache_logs\2017-12-10T22_19_20_852Z-debug.log

C:\Users\Charlie\Desktop\advanced-css-course-master\Natours\new css>

@lusianaharyanti

This comment has been minimized.

lusianaharyanti commented Jul 11, 2018

Hello, any body help me?

image

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