PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 26, 2022

[FIXED] How to compile NPM modules to binaries for all platforms

 September 26, 2022     binaries, node.js, npm     No comments   

Issue

how to convert NODE MODULES into binaries to support all platform.

  • Windows x86
  • Windows X64
  • Linux
  • OS X

and load those binaries in Node application instead of npm modules. ?


Solution

A good starting point might be to take a look at http://cylonjs.com/blog/2014/11/19/creating-multiplatform-precompiled-binaries-for-node-modules/

It would help if you could clarify your question, since I'm not sure exactly what you are trying to achieve. I answered on the assumption that you have binaries you want to include for node modules on multiple platforms (see link above). Otherwise, just having node modules installed as part of an application should be the same as adding them as a dependency in the package.json.



Answered By - ryzngard
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing