"No libdef files found" when trying to install
See original GitHub issueI’m trying to use Flow on my angular app, so
flow-typed install angular@4.4.6
but it fails with
• rebasing flow-typed cache...
ERROR: Unable to rebase the local cache repo. Error rebasing the `master` branch of the following repo:
C:\Users\username\.flow-typed\repo
undefined
NOTE: Unable to rebase local cache! If you don't currently have internet connectivity, no worries -- we'll update the local cache the next time you do.
UNCAUGHT ERROR: Error: npm/random-js_v1.x.x: No libdef files found!
at validationError (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\dist\lib\validationErrors.js:14:11)
at extractLibDefsFromNpmPkgDir$ (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\dist\lib\npm\npmLibDefs.js:142:51)
at tryCatch (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:65:40)
at Generator.invoke [as _invoke] (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:117:21)
at tryCatch (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:65:40)
at invoke (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:155:20)
at c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:165:13
at <anonymous>```
What am I doing wrong? I'm new to Flow, so I can misunderstand something: if so, sorry)
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Why do flow-typed libdefs types not work consistently?
I have a React project using Flow for static type checking; I have libdefs for npm 3rd party libraries installed using flow-typed ....
Read more >Flow | Checking third-party code
If a compatible libdef is found, download it into the <PROJECT_ROOT>/flow-typed/ directory. If no compatible libdef is found and the library does not...
Read more >Solve libcef.dll Is Missing Error In Windows 10/8/7 [Tutorial]
This DLL file is digitally signed by Valve and is used by Steam and ... computer libcef.dll was not found libcef.dll fix libcef.dll...
Read more >missing file message on Windows 10 install
Just tried to install a non-upgrade, full version of Windows 10 Pro from a factory USB on a new SSD in a single...
Read more >Library Definitions | Flow
Most real JavaScript programs depend on third-party code and not just code ... A libdef is a special file that informs Flow about...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved this problem in the following way:
Then, I waited a few minutes for the execution to be successful.
I guess the cause of this problem is the bad network condition.
The
/Users/kynan/.flow-typed/repo
part looks pretty strange to me, what’s going on in your.flow-typed
directory? What happens if you wipe that folder? Obviously not an actual solution, but I’m curious to see what’s going on…