Socket
Book a DemoInstallSign in
Socket

@citizenfx/node-rebuild

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citizenfx/node-rebuild

Modified Electron rebuild package to rebuild native node modules against the currently installed FXServer.

1.0.1
latest
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
0
Weekly downloads
 
Created
Source

CitizenFX Node Rebuild

NPM

This package is based on electron-rebuild.

This executable is rebuilding the native NodeJS modules you are using inside your FXServer resource against the NodeJS version that is used by the FXServer.

How does it work?

Install the @citizenfx/node-rebuild as a dev dependency with --save-dev:

npm install --save-dev @citizenfx/node-rebuild

Then, whenever you install a new package inside your FXServer resource, rerun node-rebuild:

$(npm bin)/node-rebuild

Or if you're on Windows:

.\node_modules\.bin\node-rebuild.cmd

The same works inside a script in your package.json:

"scripts": {
  "rebuild": "node-rebuild -f"
}

and then

npm run rebuild

What are the requirements?

Node v22.6.0 or higher is required. Building native modules from source uses node-gyp, refer to the link for its installation/runtime requirements.

What if the NodeJS version changed inside the FXServer?

The node-rebuild can be manually adjusted to rebuild against the NodeJS version that is required by providing the version as a cli argument.

node-rebuild --nodeVersion 22.6.0

Keywords

citizenfx

FAQs

Package last updated on 07 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.