-
Notifications
You must be signed in to change notification settings - Fork 28
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
cldr-data installation fails when request is present in package.json #33
Comments
I could not reproduce your bug. I'm running npm 3.3.6, node 5, on linux. I've created a brand new directory, created a package.json with the contents above and ran Are you experiencing this problem on your machine as well as in your deploy at bluemix? What's your setup? It's indeed a weird error. PS: FWIW, cldr-data uses cldr-data-downloader, which depends on request": "2.72.0". |
This problem was happening with everyone in my team. |
Please which OS, npm, and node versions are you using? |
Locally we're all using: On Bluemix, we're using:
I'm not sure which is the NPM version on Bmx, trying to figure out... |
Also experiencing this problem. FWIW, Bluemix will default to npm version: 2.14.12. |
I havent had time myself to debug this, but I'm definitely open for bug fixes. |
I'm able to repro but only with npm2. Install succeeds with npm3. |
I suspect what's happening is:
This explains why it only occurs with npm2 (since npm3 has rewritten most of the deduping and builds a full dep tree before running); and it explains why the error message varies slightly each time, since it is nondeterministic which (if any) of Unfortunately, the
(emphasis mine) And even stronger language from the docs:
Downloading the CLDR data is precisely what |
Here are the relevant issues on npm for this bug (it is, after all, npm's bug) npm/npm#8850 The fix is not being backported to npm2. The workarounds as mentioned in npm/npm#4134 and npm/npm#8850 are:
|
I confirm, had this problem with npm2, and no issues with npm3. Probably almost all moved to node 6+ for es2015+, and this issue can be closed as "wontfix / outdated" |
For some weird reason, the deployment of my app started failing today.
Nothing changed in the code. I'm trying to deploy the same commit that was deployed yesterday, but I'm getting now errors on cldr-data npm's installation.
It happens when my package.json has both request and cldr-data as dependencies.
The error changes from time to time, but mostly, it says
I found this closed issue: #11
It is true for me that running npm install request before npm install solves the issue, however, I'm deploying my code to IBM Bluemix, and I can't manually run npm install. The module must be inside package.json
I have no idea why this started happening today, with no code changes.
Also, I was able to reproduce the issue by just creating an empty app and trying npm install (run
npm cache clear
first:package.json:
The text was updated successfully, but these errors were encountered: