-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unable to generate custom metadata with example script "scriptlibphonenumber-metadata" #7
Comments
The feature I used is called npm Do a Mine is:
So you see |
This is what I see:
I downloaded your project as zip archive and ran |
Oooooh, so you're using yarn. They seem to have fixed that: |
Good to know that yarn doesn't work with npm bin. Thank you for the notice! Btw. I'm using the latest version of yarn. |
I didn't say that. |
Furthermore, seems that you're currently inside |
I meant that the command should be run from your project root folder, not this project root folder. |
Ah, I got it. There is no issue with yarn. I was doing all the steps in the libphonenumber-js root folder which I've downloaded as a zip archive. I got confused by the section Metadata generation which requires you to fork this project in order to generate metadata. |
Yeah, that one was a bit misleading. I rephrased that section. |
Hey Nikolay
I followed the new docs for generating a set of custom metadata but the example script provided in the docs fails to execute with the following error:
sh: libphonenumber-generate-metadata: command not found
. This is the script I've included into thepackage.js
:"libphonenumber-metadata": "libphonenumber-generate-metadata metadata.min.json --countries DE --extended",
.What works for me though is the following script:
"libphonenumber-metadata": "node bin/update-metadata metadata.min.json --countries DE --extended",
.The text was updated successfully, but these errors were encountered: