question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase (and presumably other native modules) fails

See original GitHub issue

Using nexe@next on Windows 10, with Node v8.12.0 and firebase@5.5.2.

Attempting nexe index.js fails if index.js is simply var firebase = require("firebase"); with the error:

Error! Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'

Attempting to build with an earlier version of nexe will succeed but fail at runtime.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
yasserfcommented, Jul 16, 2019

Yeah I get this:

(node:1076) UnhandledPromiseRejectionWarning: Error: Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
    at ChildProcess.<anonymous> (C:\projects\deepstream-io\node_modules\resolve-dependencies\lib\worker.js:28:31)
    at ChildProcess.emit (events.js:198:13)
    at emit (internal/child_process.js:832:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

0reactions
slachtarcommented, Jul 23, 2019

Here’s a fix that worked for me: Well, it seems it’s nexe problem, trying for unknown reason to access C:\hiberfil.sys and pagefile.sys, those files are only accessible by system user, the first if used for hibernation (when windows enters in deep sleep mode), the second is the swap file. I disabled the first file via this command: powercfg -h off you need to run it from a command prompt as Administrator. For the second file, you need to disable virtual memory, you may follow those simple instructions https://www.trishtech.com/2014/11/disable-virtual-memory-in-windows-10/

then reboot

and execute your commands as Administrator.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Failed on RN 0.47 #301 - invertase/react-native-firebase
Running react-native run-ios turn up a bunch of warnings while building the various RNFirebase native modules, ending with this:.
Read more >
Module not found: Error: You attempted to import /firebase/app ...
You didn't say what error you're getting, but presumably it can't find firebase.utils.js. My first guess would be your relative path is not ......
Read more >
State Management in Angular Using Firebase - Toptal
This state management tutorial features an Angular app with a Cloud Firestore back end. It also covers stores and services, RxJs, change detection, ......
Read more >
CS 466 | practical08-firebase - Middlebury
CS 466 - React Native & Firebase. Goals. Learn the basics of online persistence; Learn about one of the data storage options on...
Read more >
PackageManager - Android Developers
Return a List of all modules that are installed. ... Indicates whether some other object is "equal to" this one. void, finalize().
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found