Giter Site home page Giter Site logo

cldr-data-npm's People

Contributors

alunny avatar bajtos avatar chrismichaelmurphy avatar danielkaradachki avatar dependabot[bot] avatar marcelklehr avatar mehmetyararvx avatar rxaviers avatar sag3ll0 avatar srl295 avatar tinganho avatar whoan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cldr-data-npm's Issues

local files overwritten, 'git status' not clean after 'npm i'

Tried both v29 and the PR'ed #36 (v30)

Following aren't .gitignored:

.gitattributes
.ignored-bower.json
.ignored-package.json
LICENSE
availableLocales.json
defaultContent.json
main/
scriptMetadata.json
segments/
state.json
supplemental/

And also, README.md and .gitignore get replaced (probably from CLDR contents)

JavaScript heap out of memory

I have a file with the line const cldr = require('cldr-data'). When importing the file, Node eats more and more RAM until…

$ webpack-dev-server --config webpack.config.js -d --watch

<--- Last few GCs --->

[15088:0000015D8C7B99E0]   157944 ms: Mark-sweep 1245.7 (1583.9) -> 1245.5 (1585.4) MB, 462.8 / 0.0 ms  allocation failure GC in old space requested
[15088:0000015D8C7B99E0]   158428 ms: Mark-sweep 1245.5 (1585.4) -> 1244.5 (1536.9) MB, 483.7 / 0.0 ms  last resort GC in old space requested
[15088:0000015D8C7B99E0]   158913 ms: Mark-sweep 1244.5 (1536.9) -> 1244.5 (1521.9) MB, 484.6 / 0.0 ms  last resort GC in old space requested


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 000003FD2EBA5529 <JSObject>
	0: builtin exit frame: stringify(this=000003FD2EB88D59 <Object map = 0000037CAA182BA1>,000000EAF32822D1 <undefined>,000000EAF32822D1 <undefined>,000001DE350DC281 <Very long string[469998]>)

	1: arguments adaptor frame: 1->3
	2: /* anonymous */ [...\node_modules\webpack\lib\EvalSourceMapDevToolModuleTemplatePlugin.js:66] [bytecode=0000030ED3173019 ...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::DecodeWrite
 2: node_module_register
 3: v8::internal::FatalProcessOutOfMemory
 4: v8::internal::FatalProcessOutOfMemory
 5: v8::internal::Factory::NewRawTwoByteString
 6: v8::internal::Smi::SmiPrint
 7: v8::internal::StackGuard::HandleInterrupts
 8: v8::internal::wasm::LocalDeclEncoder::Size
 9: v8::internal::wasm::LocalDeclEncoder::Size
10: v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString
11: v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString
12: 0000012CCAD86B21
error An unexpected error occurred: "Command failed.
Exit code: 134

What's wrong here?

Unable to install Error: connect ETIMEDOUT

abc npm install globalize cldr-data
\

[email protected] install /usr/local/def/node_modules/cldr-data
node install.js

GET https://github.com/unicode-cldr/cldr-core/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-dates-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-localenames-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-misc-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-numbers-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-segments-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-units-modern/archive/28.0.0.zip
/usr/local/def/node_modules/cldr-data/node_modules/cldr-data-downloader/lib/download.js:51
throw error;
^

Error: connect ETIMEDOUT
at Object.exports._errnoException (util.js:837:11)
at exports._exceptionWithHostPort (util.js:860:20)
at TCPConnectWrap.afterConnect as oncomplete
npm ERR! Linux 2.6.18
npm ERR! argv "/usr/local/tde/acc/install/node/bin/node" "/usr/local/web/acc/install/node/bin/npm" "install" "globalize" "cldr-data"
npm ERR! node v4.1.0
npm ERR! npm v2.14.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node install.js'.
npm ERR! This is most likely a problem with the cldr-data package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls cldr-data
npm ERR! There is likely additional logging output above.

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

Installation error with 29.0.0

I'm aware there's a bunch of open issues related to install (not suprising, since this package doesn't really do anything else), but since they all look like slightly different issues and are more or less old, I'm creating a new one.

After about 10 attempts, I'm still getting a failure while trying to install cldr-data:

$ npm install
> [email protected] install /Users/joern.zaefferer/dev/sloppy/frontend/node_modules/cldr-data
> node install.js

GET `https://github.com/unicode-cldr/cldr-core/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-dates-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-localenames-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-misc-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-numbers-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-segments-modern/archive/29.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-units-modern/archive/29.0.0.zip`
  [----------------------------------------] 21867380/Infinity 0% 0.0s/workdir/node_modules/cldr-data-downloader/lib/download.js:51
      throw error;
      ^

Error: connect ETIMEDOUT 192.30.253.113:443
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cldr-data package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cldr-data
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cldr-data
npm ERR! There is likely additional logging output above.

I wondered if any specific package under https://github.com/unicode-cldr might be at fault, but since there are so many and the output doesn't tell me which one is reponsible, I gave up on that.

Error in conversion between LDML -> JSON for fr-CH data

From CLDR 34 in the file common/main/fr_CH.xml (at the end of the file):

        <numbers>
                ...
                <currencyFormats numberSystem="latn">
                        <currencyFormatLength>
                                <currencyFormat type="standard">
                                        <pattern draft="contributed">#,##0.00 ¤;-#,##0.00 ¤</pattern>
                                </currencyFormat>
                        </currencyFormatLength>
                </currencyFormats>
        </numbers>

And this is in cldr-data/main/fr-CH/numbers.json in the property
main["fr-CH"].numbers["currencyFormats-numberSystem-latn"].standard:

          "standard": "#,##0.00 ¤ ;-#,##0.00 ¤",

Note that the json version has a non-breaking space before the semi-colon and the XML version does not. Only fr-CH seems to have this problem. The other locales' currency formats are okay.

cldr-data install.js is broken wrt. peer dependencies

It has three problems:

  1. it fails, but then exits with status 0: https://github.com/rxaviers/cldr-data-npm/blob/master/install.js#L52, this is incorrect. Failing scripts must exit with a non-0 status to indicate failure.
  2. its determination of whether it is installing because of a peer dependency appears to be a protection to be future proof with npm3... but actually, it fails with npm3
  3. the message is not grammatically correct English, but that's pretty minor

Our scenario is this:

  • ourpackage
    • depends on strong-globalize, a DIRECT normal npm dependency
      • strong-globalize direct depends on cldr-data
      • strong-globalize direct depends on globalize
        • globalize peer depends on cldr-data

This is all correct. cldr-data is installed via direct dependency, NOT via the globalize peerDependency, but cldr-data doesn't download, and after printing a message, reports success via its exit status.

cldr-data's gets installed by npm3 at the top-level, using the flattening, and this appears to confuse the script.

Filter available languages

Hi,
I'm using cldr-js and cldr-data-npm.
It feet's exactly what I need, but currently my app only needs 3 languages (en, fr and ja).
Is it possible while packaging my app (I'm using webpack) to filter the included languages ?
Or while using cldr-data-npm, to only install needed languages ?

Error while installing cldr-data over the proxy

Cannot install cldr-data over the proxy:

$ npm install cldr-data

[email protected] install H:\szg2_poc_www\node_modules\cldr-data
node install.js

GET https://github.com/unicode-cldr/cldr-core/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-dates-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-localenames-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-misc-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-numbers-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-segments-modern/archive/30.0.2.zip
GET https://github.com/unicode-cldr/cldr-units-modern/archive/30.0.2.zip
H:\szg2_poc_www\node_modules\cldr-data-downloader\lib\download.js:51
throw error;
^

Error: unable to verify the first certificate
at Error (native)
at TLSSocket. (_tls_wrap.js:1060:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:584:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)

My proxy settings (fiddler proxy for testing purposes):
.nmrpc
proxy=http://localhost:8888/
proxy-https=http://localhost:8888
strict-ssl=false

I've already tried to set environment variable: HTTP_PROXY to match configuration used in .npmrc without any results.

npm install fails

[email protected]/31.0.1/31.0.2 all fails when installing node modules.

316 silly saveTree └─┬ [email protected]
316 silly saveTree ├── [email protected]
316 silly saveTree └── [email protected]
317 warn [email protected] requires a peer of popper.js@^1.12.9 but none is installed. You must install peer dependencies yourself.
318 verbose stack Error: [email protected] install: node install.js
318 verbose stack Exit status 1
318 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
318 verbose stack at emitTwo (events.js:126:13)
318 verbose stack at EventEmitter.emit (events.js:214:7)
318 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
318 verbose stack at emitTwo (events.js:126:13)
318 verbose stack at ChildProcess.emit (events.js:214:7)
318 verbose stack at maybeClose (internal/child_process.js:925:16)
318 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
319 verbose pkgid [email protected]
320 verbose cwd /Users/<>/Documents/Code/COE/MFSG
321 verbose Darwin 17.4.0
322 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "[email protected]"
323 verbose node v8.9.4
324 verbose npm v5.6.0
325 error code ELIFECYCLE
326 error errno 1
327 error [email protected] install: node install.js
327 error Exit status 1
328 error Failed at the [email protected] install script.
328 error This is probably not a problem with npm. There is likely additional logging output above.
329 verbose exit [ 1, true ]

downloader's isInstalled check fails (npm 3)

Even if the latest version is already installed, when I install something else cldr-data's install script is re-run, all the previously downloaded files are gone and consequently cldr-data-downloader downloads everything again.

I'm not sure why all the files are being deleted. I suspect it's npm cleaning up or something :/

Improve downloads filtering

Current method to restrict download via package.json has some disadvantages:

  1. It requires additional json file (not convenient) with relative path (strange).
  2. It freeze url versions. User should care about file versions update even after package was updated.

I'd suggest add support for regexp:

{
   "cldr-data-urls-filter": "(cldr-core|cldr-dates-modern|cldr-numbers-modern)"
}

I think that would be more simple and convenient for all.

Keep data in a single place

Can we keep the data in one single/global place to avoid unnecessary downloads and to avoid unnecessary disk usage? For example, in ~/.npm/cldr-data/<version>. More details: the files of this repo would be normally installed by npm and therefore placed in each local node_modules path, but our post-install script would download CLDR into a global place (and avoid to re-download it in case it was already downloaded); then link those files for the respective node_modules install, so they can be accessed.

Benefits:

  • Avoid re-downloading CLDR data between multiple projects that depends on cldr-data: i.e., multiple cldr-data installs (using the same CLDR version) in the same machine would all share the same JSON files.
  • Avoid re-downloading CLDR data between multiple runs on Continuous Integration tests. Note, this setup requires access to the machine, so the cached files can be put in place once.

TODOs:

  • Can we re-use the same path npm already uses for caching, e.g., it is ~/.npm/cldr-data/<version> in linux? If so, how to figure out that path, is it available via an npm config / env var?
  • Does require('cldr-data/<arbitrary-json-file-path.json') still work using this approach? For linux and mac, we can use a link (ideally a symlink should be enough, but surely hardlinks would do it). For MS windows I don't know. If there's no solution for MS Windows, we could optimize (use the single/global shared place optimization) for linux and macs only.

npm install issue

I apologize if this is not the right place for this. My company is currently using cldr-data with Globalize. We notice that whenever someone does an npm install, the data is downloaded again, even if it was previously downloaded. I assume that the default npm install behavior was overridden to make this happen. I am sure that this was done for a good reason but I am wondering what that reason was purely for my own understanding. Also, is there anything that can be done in order to change this behavior or simply to improve the developer experience? People are unhappy with the fact that the npm install time just increased by about 2 minutes. Thanks!

During npm install: Error: tunneling socket could not be established, cause=read ECONNRESET

I am behind a proxy, and using cntlm, and I am getting this error. Tried various things, can't figure this out for the life of me. Outside of proxy this works. Here is the error:

GET `https://github.com/unicode-cldr/cldr-numbers-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-segments-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-units-modern/archive/31.0.1.zip`
./cldr-data-downloader/lib/download.js:119
      throw error;
      ^

Error: tunneling socket could not be established, cause=read ECONNRESET
    at ClientRequest.onError (/Users/dulino/node_modules/tunnel-agent/index.js:176:17)
    at ClientRequest.g (events.js:291:16)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at Socket.socketErrorListener (_http_client.js:310:9)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at emitErrorNT (net.js:1278:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

language detected.

how can i find the main language used for specific country.

For example if i give "US" as country code.
what is the method/files i need to find the main language for "US" country?

cldr-data is getting installed twice by end-user applications

$ npm install globalize
\
> [email protected] install /tmp/node_modules/globalize/node_modules/cldr-data
> node install.js

GET `http://www.unicode.org/Public/cldr/26.0.1/json.zip`
  [========================================] 100% 0.0s
Received 3424K total.
Unpacking it into `./`
/
> [email protected] install /tmp/node_modules/cldr-data
> node install.js

GET `http://www.unicode.org/Public/cldr/26.0.1/json.zip`
  [========================================] 100% 0.0s
Received 3424K total.
Unpacking it into `./`
[email protected] node_modules/cldr-data
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/globalize
├── [email protected] ([email protected])
└── [email protected]


$ npm --version
1.4.23

v31.0.0 - npm install fails

I think something is broken on this release.

npm install cldr-data

node v6, happens both on travis and locally.

npm install cldr-data
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: use uuid module instead

> [email protected] install /home/vitaly/Загрузки/node_modules/cldr-data
> node install.js

GET `https://github.com/unicode-cldr/cldr-core/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-dates-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-localenames-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-misc-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-numbers-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-segments-modern/archive/31.0.0.zip`
GET `https://github.com/unicode-cldr/cldr-units-modern/archive/31.0.0.zip`
/home/vitaly/Загрузки/node_modules/cldr-data-downloader/lib/download.js:66
      throw error;
      ^

Error: Error requesting archive.
Status: 404
Request options: {
  "url": "https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/31.0.0.zip",
  "headers": {
    "User-Agent": "curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5"
  },
  "followRedirect": true,
  "encoding": null
}
Response headers: {
  "content-length": "15",
  "access-control-allow-origin": "https://render.githubusercontent.com",
  "content-security-policy": "default-src 'none'; style-src 'unsafe-inline'",
  "strict-transport-security": "max-age=31536000",
  "vary": "Authorization,Accept-Encoding",
  "x-content-type-options": "nosniff",
  "x-frame-options": "deny",
  "x-xss-protection": "1; mode=block",
  "date": "Mon, 20 Mar 2017 23:01:02 GMT",
  "x-github-request-id": "876D:2FE62:4569E3:596A79:58D05F2D",
  "connection": "close"
}
Make sure your network and proxy settings are correct.

If you continue to have issues, please report this full log at https://github.com/rxaviers/cldr-data-downloader
    at Request._callback (/home/vitaly/Загрузки/node_modules/cldr-data-downloader/lib/download.js:58:15)
    at Request.self.callback (/home/vitaly/Загрузки/node_modules/request/request.js:187:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/home/vitaly/Загрузки/node_modules/request/request.js:1044:10)
    at emitOne (events.js:101:20)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/home/vitaly/Загрузки/node_modules/request/request.js:965:12)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
npm WARN enoent ENOENT: no such file or directory, open '/home/vitaly/Загрузки/package.json'

npm install issue

do u have any idea about this issue?

my node version is v5.2.0 and npm is 3.3.12

[email protected] install C:\project\ctx\lib\node_modules\cldr-data
node install.js

GET https://github.com/unicode-cldr/cldr-core/archive/28.0.2.zip
GET https://github.com/unicode-cldr/cldr-dates-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-localenames-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-misc-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-numbers-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-segments-modern/archive/28.0.0.zip
GET https://github.com/unicode-cldr/cldr-units-modern/archive/28.0.0.zip
[----------------------------------------] 4344641/Infinity 0% 0.0sC:\project\ctx\lib\node_modules\cldr-data-dow
nloader\lib\download.js:51
throw error;
^

Error: 101057795:error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac:openssl\ssl\s3_pk
t.c:532:

[email protected] install: node install.js
Exit status 1

Failed at the [email protected] install script 'node install.js'.
Make sure you have the latest version of node.js and npm installed.
If you do, this is most likely a problem with the cldr-data package,
not with npm itself.
Tell the author that this fails on your system:
node install.js
You can get their info via:
npm owner ls cldr-data
There is likely additional logging output above.

Doesn't seem to install with npm 3.x

I am not quite sure why but installing cldr-data with npm 3.x always gives an the warning that it is a peer dep and so is not installing. This may be due to the package assuming stuff about node_module layout that isn't true now that its mostly flat.

I did confirm that I had it listed as a dev Dep in my package (and not a peer dep)

Can not npm install on [email protected]

on [email protected] is failed.

$ npm install cldr-data --save

> [email protected] install /Users/hoge/node_modules/cldr-data
> node install.js

Whops {} deepEqual { url:
   [ 'https://github.com/unicode-cldr/cldr-core/archive/31.0.1.zip',
     'https://github.com/unicode-cldr/cldr-dates-mo
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

However, on [email protected] is success.

$ npm install cldr-data --save
npm WARN deprecated [email protected]: Use uuid module instead

> [email protected] install /Users/hoge/node_modules/cldr-data
> node install.js

GET `https://github.com/unicode-cldr/cldr-core/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-dates-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-localenames-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-misc-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-numbers-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-segments-modern/archive/31.0.1.zip`
GET `https://github.com/unicode-cldr/cldr-units-modern/archive/31.0.1.zip`
  [========================================] 254637/0 100% 0.0s
Received 30967K total.
Unpacking it into `./`
+ [email protected]
added 13 packages in 32.618s

Maybe, npm WARN deprecated [email protected]: Use uuid module instead id related to its problem.
Is there any solution?

cldr-data installation fails when request is present in package.json

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

> [email protected] install /Users/andreperazzi/Documents/IBM/Projects/Web Innovations/ifundit/ifundit/node_modules/cldr-data
> node install.js

module.js:338
    throw err;
          ^
Error: Cannot find module 'boom'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/andreperazzi/Documents/IBM/Projects/Web Innovations/ifundit/ifundit/node_modules/request/node_modules/hawk/lib/index.js:3:33)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)`

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:

{
  "name": "tst",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "cldr-data": "^28.0.2",
    "request": "^2.40.0"
  }
}

Install fails on step "node install.js"

Output from npm log:

4395 verbose stack Error: [email protected] install: `node install.js`
4395 verbose stack Exit status 1
4395 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:279:16)
4395 verbose stack     at emitTwo (events.js:106:13)
4395 verbose stack     at EventEmitter.emit (events.js:194:7)
4395 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
4395 verbose stack     at emitTwo (events.js:106:13)
4395 verbose stack     at ChildProcess.emit (events.js:194:7)
4395 verbose stack     at maybeClose (internal/child_process.js:899:16)
4395 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
4396 verbose pkgid [email protected]

I thought it might be related to #24 but it's not the same error and I even tried rolling back to Node 7.0 but no luck.

node = v7.10.1
npm = 4.2.0

cannot find module 'request'

Getting the below error when i'm trying to npm install cldr-data

2018-05-07T16:00:55.1531636Z > [email protected] install D:\TfsBuildAgents\CustomAgent3_work\1\s\CoBRAMVC4Portal\node_modules\cldr-data
2018-05-07T16:00:55.1531636Z > node install.js
2018-05-07T16:00:55.1531636Z
2018-05-07T16:00:55.3051656Z module.js:538
2018-05-07T16:00:55.3051656Z throw err;
2018-05-07T16:00:55.3051656Z ^
2018-05-07T16:00:55.3051656Z
2018-05-07T16:00:55.3051656Z Error: Cannot find module 'request'
2018-05-07T16:00:55.3051656Z at Function.Module._resolveFilename (module.js:536:15)
2018-05-07T16:00:55.3051656Z at Function.Module._load (module.js:466:25)
2018-05-07T16:00:55.3051656Z at Module.require (module.js:579:17)
2018-05-07T16:00:55.3051656Z at require (internal/module.js:11:18)
2018-05-07T16:00:55.3051656Z at Object. (D:\TfsBuildAgents\CustomAgent3_work\1\s\CoBRAMVC4Portal\node_modules\cldr-data-downloader\lib\download.js:14:15)
2018-05-07T16:00:55.3051656Z at Module._compile (module.js:635:30)
2018-05-07T16:00:55.3051656Z at Object.Module._extensions..js (module.js:646:10)
2018-05-07T16:00:55.3051656Z at Module.load (module.js:554:32)
2018-05-07T16:00:55.3051656Z at tryModuleLoad (module.js:497:12)
2018-05-07T16:00:55.3051656Z at Function.Module._load (module.js:489:3)
2018-05-07T16:00:56.4671468Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
2018-05-07T16:00:56.4671468Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
2018-05-07T16:00:56.4671468Z
2018-05-07T16:00:56.4701271Z npm ERR! code ELIFECYCLE
2018-05-07T16:00:56.4701271Z npm ERR! errno 1
2018-05-07T16:00:56.4701271Z npm ERR! [email protected] install: node install.js
2018-05-07T16:00:56.4701271Z npm ERR! Exit status 1
2018-05-07T16:00:56.4721280Z npm ERR!
2018-05-07T16:00:56.4721280Z npm ERR! Failed at the [email protected] install script.
2018-05-07T16:00:56.4721280Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-05-07T16:00:56.5271272Z
2018-05-07T16:00:56.5271272Z npm ERR! A complete log of this run can be found in:
2018-05-07T16:00:56.5281274Z npm ERR! C:\Users\tfsservice\AppData\Roaming\npm-cache_logs\2018-05-07T16_00_56_509Z-debug.log
2018-05-07T16:00:56.5761276Z Found npm debug log, make sure the path matches with the one in npm's output: C:\Users\tfsservice\AppData\Roaming\npm-cache_logs\2018-05-07T16_00_56_509Z-debug.log

Error: ENOENT, no such file or directory 'c:\tmp\file.zip'

One of my dependencies (not sure which one) uses cldr-data, which fails.
More specifically, npm install fails with the following error message:

Error: ENOENT, no such file or directory 'c:\tmp\file.zip'
    at Object.fs.openSync (fs.js:438:18)
    at Object.fs.writeFileSync (fs.js:977:15)
    at Request._callback (c:\Projects\ETFViz\node_modules\cldr-data\node_modules\cldr-data-downloader\lib\download.js:78:19)
    at Request.self.callback (c:\Projects\ETFViz\node_modules\cldr-data\node_modules\cldr-data-downloader\node_modules\request\request.js:23
7:22)
    at Request.emit (events.js:98:17)
    at Request.<anonymous> (c:\Projects\ETFViz\node_modules\cldr-data\node_modules\cldr-data-downloader\node_modules\request\request.js:1146
:14)
    at Request.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (c:\Projects\ETFViz\node_modules\cldr-data\node_modules\cldr-data-downloader\node_modules\request\request
.js:1097:12)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:943:16

> [email protected] install c:\Projects\ETFViz\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)


c:\Projects\ETFViz\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws>node "c:\Program Files\nodejs\nod
e_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild

npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the cldr-data package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls cldr-data
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "update" "--save"
npm ERR! cwd c:\Projects\ETFViz
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE

Any idea what this could be due to?

Error generating available locales.

> [email protected] install C:\...blahblah..\app\node_modules\cldr-data
> node install.js

Unpacking it into `./`
Whops Error generating available locales. ENOENT, no such file or directory 'C:\...blahblah..\app\node_modules\cldr-data\main'
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the cldr-data package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls cldr-data
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\...blahblah..\app
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\...blahblah..\app\npm-debug.log
npm ERR! not ok code 0

New helper methods to iterate through the entire main and supplemental files

On #3, a couple of methods have been defined to help to iterate through the locales. I am considering to improve (and also change) the previous API according to the below:

var cldrData = require("cldr-data");

// List all locales: (no change compared to previous API)
cldrData.availableLocales.forEach(function(locale) {
  console.log(locale);
});

// Get the entire supplemental (new method)
cldrData.entireSupplemental();

// Get the entire main for certain locales (new method)
cldrData.entireMain("en", "en-GB", "pt-BR", ...)

// Get certain main file for all locales: (the previous .main() method has been deprecated)
var path = require("path");
cldrData.availableLocales.map(function(locale) {
  return cldrData(path.join("main", locale, "numbers"));
});

// Get the entire thing
cldrData.all();

Error while installing

I've been trying to install it all day with no luck.

When running: npm install --save cldr-data

I'm getting the following error:

GET https://github.com/unicode-cldr/cldr-core/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-dates-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-localenames-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-misc-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-numbers-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-segments-modern/archive/31.0.1.zip
GET https://github.com/unicode-cldr/cldr-units-modern/archive/31.0.1.zip
[----------------------------------------] 28408146/Infinity 0% 0.0sC:\PROJECTS\ANXI\node_modules\cldr-data-downloader\lib\download.js:51
throw error;
^

Error: connect ETIMEDOUT 192.30.253.113:443
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)

Missing en-US

Hey,

we are investigating why we cannot localize en-US and it happens that it cannot be found in cldr-data-npm as it exists with -POSIX subfix.

I checked http://www.unicode.org/Public/cldr/28/ and I can find there .xml for en-US and for en-US-POSIX.

Any reason why it is not a part of cldr-data?
Also, if this is correct behaviour, what would be the best solution to properly load this -POSIX data?

Cheers, Mike.

Webpack issue with cldr-data latest version

As I am using react-globalize, it is using cldr-data latest version.
With latest version I am getting following error while bundling with webpack.

I dont see cldr-data\supplemental folder in latest version. May I know how to work with latest version. When I am using cldr-data 26.x version, its working as expected.

C:\view\reactapp\node_modules\webpack\bin\webpack.js:323
                throw e;
                ^

Error: ENOENT: no such file or directory, scandir 'C:\view\reactapp\node_modules\cldr-data\supplemental'
    at Error (native)
    at Object.fs.readdirSync (fs.js:952:18)
    at jsonFiles (C:\view\reactapp\node_modules\cldr-data\index.js:36:22)
    at supplementalPaths (C:\view\reactapp\node_modules\cldr-data\index.js:69:27)
    at Function.cldrData.entireSupplemental (C:\view\reactapp\node_modules\cldr-data\index.js:94:29)
    at cldr (C:\view\reactapp\node_modules\globalize-webpack-plugin\util.js:21:21)
    at new DevelopmentModePlugin (C:\view\reactapp\node_modules\globalize-webpack-plugin\DevelopmentModePlugin.js:27:40)
    at GlobalizePlugin.apply (C:\view\reactapp\node_modules\globalize-webpack-plugin\index.js:25:7)
    at Compiler.apply (C:\view\reactapp\node_modules\tapable\lib\Tapable.js:306:16)
    at webpack (C:\view\reactapp\node_modules\webpack\lib\webpack.js:32:19)
    at processOptions (C:\view\reactapp\node_modules\webpack\bin\webpack.js:313:14)
    at Object.<anonymous> (C:\view\reactapp\node_modules\webpack\bin\webpack.js:373:1)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:508:3
error Command failed with exit code 1.

Filter installed locales

Hi,

When I install cldr-data, the node_modules/cldr-data folder is about 260Mb.
It seems that it is split into a huge number of locales, and each locale folder is around 900kb.

I only want to support a few locales in my project.
Is there any way to filter locales and only get a few on install ?

Thanks

Load all Locales

Hi! How can I load all the locales?

I am in a project that expects to adapt to all languages/formats.

And in ll the example I can find, I need to do something like:

import likelySubtags from 'cldr-data/supplemental/likelySubtags.json';
import currencyData from'cldr-data/supplemental/currencyData.json';
import weekData from'cldr-data/supplemental/weekData.json';

import bgLocalCurrency from'cldr-data/main/bg/currencies.json';
import bgNumbers from'cldr-data/main/bg/numbers.json';
import bgCaGregorian from'cldr-data/main/bg/ca-gregorian.json';
import bgDateFields from'cldr-data/main/bg/dateFields.json';

import gbLocalCurrency from'cldr-data/main/en-GB/currencies.json';
import gbNumbers from'cldr-data/main/en-GB/numbers.json';
import gbCaGregorian from'cldr-data/main/en-GB/ca-gregorian.json';
import gbDateFields from'cldr-data/main/en-GB/dateFields.json';

import { IntlProvider, load } from '@progress/kendo-react-intl';
import { DateFormatter } from './DateFormatter.jsx';
import { CurrencyFormatter } from './CurrencyFormatter.jsx';
import { Chooser } from './Chooser.jsx';

load(
    likelySubtags,
    currencyData,
    weekData,
    bgLocalCurrency,
    bgNumbers,
    bgCaGregorian,
    bgDateFields,
    gbLocalCurrency,
    gbNumbers,
    gbCaGregorian,
    gbDateFields
);

Obviously, this is not great.

I tried to do import data from 'cldr-data' but webpack explodes.
Then I tried to do something like const caGregorian = require('cldr-data/main/' + name + '/ca-gregorian.json') but it explodes as well.

Is there a way to include all the locales? Is there a better way to handle this?

I really dont know and I would appreciate some help.

Thanks.


Update 1: I get the error when I try to require cldr-data
Module not found: Error: Can't resolve 'fs' in '....\node_modules\cldr-data'

error on npm install

I'm running into the following when trying to install with npm:

> node install.js

GET `https://github.com/unicode-cldr/cldr-core/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-dates-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-buddhist-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-chinese-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-coptic-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-dangi-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-ethiopic-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-hebrew-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-indian-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-islamic-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-japanese-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-persian-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-cal-roc-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-localenames-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-misc-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-numbers-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-segments-modern/archive/27.0.3.zip`
GET `https://github.com/unicode-cldr/cldr-units-modern/archive/27.0.3.zip`
  [----------------------------------------] 3672/Infinity 0% 0.0s/Users/cwd/src/AnswerDash/Qazzow/sales_dashboard/node_modules/cldr-data/node_modules/cldr-data-downloader/lib/download.js:51
      throw error;
            ^
Error: socket hang up
    at createHangUpError (_http_client.js:215:15)
    at TLSSocket.socketOnEnd (_http_client.js:300:23)
    at TLSSocket.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)
npm ERR! Darwin 15.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "cldr-data"
npm ERR! node v0.12.5
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node install.js'.
npm ERR! This is most likely a problem with the cldr-data package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls cldr-data
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/cwd/src/AnswerDash/Qazzow/sales_dashboard/npm-debug.log```

Provide way to iterate through all locales

Suggestion:

var cldrData = require("cldr-data");

// Load main/<all locales>/numbers.json.
cldrData.forEachLocale(function(locale, mainData) {
  Cldr.load(mainData("numbers"));
});

cldr-data installation issue

#I am able to install cldr-data 26.x module with out any error. But I am getting following error while installing latest version 31.x

\cldr-data-downloader\lib\download.js:119
throw error;
      ^

Error: unable to get local issuer certificate
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at TLSSocket._finishInit (_tls_wrap.js:610:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

please do needful.

npm install crashing on install.js script with missing modules

Been unable to install cldr-data recently. The npm error indicates an issue with the cldr-data install script, but I'm also seeing some npm weirdness perhaps due to the EC2 US West outage yesterday/today. CC @tinganho because it's ultimately l10ns I'm trying to install.

ubuntu@host:~$ mkdir /tmp/d
ubuntu@host:~$ cd /tmp/d
ubuntu@host:/tmp/d$ npm install l10ns
/
> [email protected] install /tmp/d/node_modules/l10ns/node_modules/cldr-data
> node install.js


module.js:340
    throw err;
          ^
Error: Cannot find module 'boom'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/tmp/d/node_modules/l10ns/node_modules/request/node_modules/hawk/lib/index.js:3:33)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the cldr-data package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls cldr-data
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-77-virtual
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "l10ns"
npm ERR! cwd /tmp/d
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

How to get full coverage in a global npm module

HI @rxaviers

I wonder how I can get the full coverage in L10ns, without telling my users to set the global variable CLDR_COVERAGE?.

It would be good if i can "npm install l10ns -g" and it will install cldr-data with full coverage.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.