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

JSONStream or jsonstream? #7

Closed
refractalize opened this issue May 7, 2015 · 18 comments
Closed

JSONStream or jsonstream? #7

refractalize opened this issue May 7, 2015 · 18 comments

Comments

@refractalize
Copy link

take a look at this beautiful error message when I run npm install browserify:

npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "i" "browserify"
npm ERR! node v0.12.1
npm ERR! npm  v2.7.4
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: JSONStream@'>=1.0.3 <2.0.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.7.0","0.7.1","0.8.0","0.7.2","0.7.3","0.7.4","0.8.1","0.8.2","0.8.3","0.8.4","0.9.0","0.10.0"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'deps-sort'
npm ERR! notarget 

npm ERR! Please include the following file with any support request:
npm ERR!     /..../npm-debug.log

I get this running Mac OS X (which is case-insensitive).

I think NPM is confusing JSONSteam with jsonstream. Which, to be fair is a little confusing to myself :)

@refractalize
Copy link
Author

Even npm cache clear doesn't help...

@refractalize
Copy link
Author

Oh, I'm running npm install browserify (I've edited the original issue)

@deefour
Copy link

deefour commented May 7, 2015

I'm having the same problem installing cordova. It's because of the dependency change from JSONStream to jsonstream in package.json 2 hours ago.

"jsonstream": "^1.0.3",

275200e

@Ferdaszewski
Copy link

Same problem here when I run npm install atomify on Mac OS X.

No compatible version found: JSONStream@'>=1.0.3 <2.0.0'

@deefour
Copy link

deefour commented May 7, 2015

I got my install working with the following up-front

npm install deps-sort@1.3.6
npm install insert-module-globals@6.4.0
npm install module-deps@3.7.10

These all have the same issue introduced with the JSONStream/jsonstream case conflict introduced in the last 2 hours.

@callumacrae
Copy link

Two hours ago, our build broke:

311448 verbose unlock done using /Users/callumacrae/.npm/_locks/lmn-gulp-tasks-66ed9d312946097e.lock for /Users/callumacrae/Sites/lmn/eagle/node_modules/lmn-gulp-tasks
311449 verbose stack Error: No compatible version found: JSONStream@'>=1.0.3 <2.0.0'
311449 verbose stack Valid install targets:
311449 verbose stack ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.7.0","0.7.1","0.8.0","0.7.2","0.7.3","0.7.4","0.8.1","0.8.2","0.8.3","0.8.4","0.9.0","0.10.0"]
311449 verbose stack
311449 verbose stack     at installTargetsError (/Users/callumacrae/.nvm/versions/node/v0.12.0/lib/node_modules/npm/lib/cache/add-named.js:259:12)
311449 verbose stack     at next (/Users/callumacrae/.nvm/versions/node/v0.12.0/lib/node_modules/npm/lib/cache/add-named.js:238:17)
311449 verbose stack     at setData (/Users/callumacrae/.nvm/versions/node/v0.12.0/lib/node_modules/npm/lib/cache/add-named.js:215:5)
311449 verbose stack     at RES (/Users/callumacrae/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/inflight/inflight.js:23:14)
311449 verbose stack     at f (/Users/callumacrae/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/once/once.js:17:25)
311449 verbose stack     at CachingRegistryClient.get_ (/Users/callumacrae/.nvm/versions/node/v0.12.0/lib/node_modules/npm/lib/cache/caching-client.js:125:16)
311449 verbose stack     at /Users/callumacrae/.nvm/versions/node/v0.12.0/lib/node_modules/npm/lib/cache/caching-client.js:91:14
311449 verbose stack     at evalmachine.<anonymous>:336:14
311449 verbose stack     at /Users/callumacrae/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:102:5
311449 verbose stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:99:15)
311450 verbose cwd /Users/callumacrae/Sites/lmn/eagle
311451 error Darwin 14.0.0
311452 error argv "/Users/callumacrae/.nvm/versions/node/v0.12.0/bin/node" "/Users/callumacrae/.nvm/versions/node/v0.12.0/bin/npm" "i"
311453 error node v0.12.0
311454 error npm  v2.5.1
311455 error code ETARGET
311456 error notarget No compatible version found: JSONStream@'>=1.0.3 <2.0.0'
311456 error notarget Valid install targets:
311456 error notarget ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.7.0","0.7.1","0.8.0","0.7.2","0.7.3","0.7.4","0.8.1","0.8.2","0.8.3","0.8.4","0.9.0","0.10.0"]
311456 error notarget
311456 error notarget This is most likely not a problem with npm itself.
311456 error notarget In most cases you or one of your dependencies are requesting
311456 error notarget a package version that doesn't exist.
311457 verbose exit [ 1, true ]
311458 verbose unbuild node_modules/lmn.tarantula/node_modules/browserify/node_modules/deps-sort
311459 info preuninstall deps-sort@1.3.7
311460 info uninstall deps-sort@1.3.7

@lxe
Copy link

lxe commented May 7, 2015

Yeah this broke things when installing "browserify@^9.0.8"

Basically there's no JSONStream https://github.com/substack/deps-sort/blob/master/package.json#L11' version 1.0.3. There is jsonstream@1.0.3. I think you meant jsonstream2. jsonstream2 should work while the npm resolution is pending.

@mimiflynn
Copy link

I'm getting the same issue as Ixe but when installing "grunt-browserify": "~3.2.0"

@dspnorman
Copy link

Just ran into the same issue with my build:

npm ERR! notarget No compatible version found: JSONStream@'>=1.0.3 <2.0.0'

@ghost
Copy link

ghost commented May 7, 2015

This is an npm bug. It would be best if people raised these issues on npm, not here.

@callumacrae
Copy link

Please work around it until the npm bug is fixed! It was a code change here that caused the error to be thrown.

@AndrewBroz
Copy link

275200e

@AndrewBroz
Copy link

Reverting this change fully resolves the issue.

@lunaroja
Copy link

lunaroja commented May 7, 2015

@AndrewBroz
Copy link

Understand the npm issue (browserify/browserify#1247), but this change shouldn't have happened until it was resolved.

@charlierudolph
Copy link

Please revert until npm resolves its issue

@AndrewBroz
Copy link

Resolved by 2258e66

@zertosh
Copy link
Member

zertosh commented May 8, 2015

This is all clear now!

@zertosh zertosh closed this as completed May 8, 2015
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

Successfully merging a pull request may close this issue.