Comments (9)
Yeah, that one was a bit misleading. I rephrased that section.
from libphonenumber-js.
The feature I used is called npm bin
when npm adds local .bin/
directories to the shell path before it executes scripts.
https://leanpub.com/setting-up-es6/read#leanpub-auto-npm-and-local-installs
Do a ls node_modules/.bin
.
Mine is:
_mocha istanbul npm-run-all
acorn jade regjsparser
babel js-yaml repeating
babel-doctor jsesc rimraf
babel-external-helpers json5 semver
babel-node libphonenumber-generate-metadata sha.js
babylon libphonenumber-js-update-metadata uglifyjs
detect-indent loose-envify user-home
errno miller-rabin webpack
esparse mkdirp which
esvalidate mocha
handlebars nopt
So you see libphonenumber-generate-metadata
there.
You may also try to reinstall the package.
from libphonenumber-js.
This is what I see:
> ls node_modules/.bin
_mocha babel-doctor babel-node mocha rimraf
babel babel-external-helpers istanbul npm-run-all webpack
I downloaded your project as zip archive and ran yarn install
.
from libphonenumber-js.
Oooooh, so you're using yarn.
I guess that's the case: it just doesn't support npm bin
feature.
Alternatively use ./node_modules/libphonenumber-js/bin/libphonenumber-generate-metadata
then.
They seem to have fixed that:
yarnpkg/yarn#733
Make sure you're running the latest yarn.
I don't use yarn so it's not officially supported by this repo.
If you find a solution you can send a pull request.
from libphonenumber-js.
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.
from libphonenumber-js.
Good to know that yarn doesn't work with npm bin.
I didn't say that.
On the contrary, seems that yarn has been working with npm bin for a long time now.
You can try to file an issue in yarn repo if you want to dig into that.
That would require creating a minimal simplest project on github illustrating the issue (the runnable file not created inside .bin
directory)
from libphonenumber-js.
Furthermore, seems that you're currently inside node_modules/libphonenumber-js
folder.
The instructions for building custom metadata is for the root project folder.
So cd to the root project folder and try again.
from libphonenumber-js.
I meant that the command should be run from your project root folder, not this project root folder.
from libphonenumber-js.
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.
from libphonenumber-js.
Related Issues (20)
- Unable to delete characters if there is a parenthesis HOT 1
- Any property returns area code? HOT 3
- Different Results |ย Real Life vs Demo HOT 2
- validatePhoneNumberLength does not return TOO_LONG for invalid Ukrainian phone number HOT 9
- Some North American countries receive incorrect National Format when removing digits
- Cuba added a new prefix 63 to phone number HOT 1
- New HK Hutchison telecom mobile number range not yet updated HOT 2
- Spain accepts 7 as a prefix for phone numbers HOT 1
- Unable to get Number Type of some numbers like Indian Mobile Numbers HOT 4
- Is this Error expected? HOT 5
- Missing dashes when using International format HOT 3
- Failed running script liphonenumber-generate-metadata HOT 1
- Find phone numbers in text doesn't work if fr and us are mixed HOT 1
- Find and replace in text problem
- +13107549 is somehow valid? HOT 2
- Country codes are missing 'AQ' (Antarctica) code HOT 1
- AsYouType doesn't work for "FR" and other countries. Only works for "US".
- deleted because no general issue with libphonenumber-js HOT 1
- Leading 0 is removed for Brazilian numbers HOT 3
- findPhoneNumbersInText thinks the Dutch bsn is a phone number v1.11.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libphonenumber-js.