Registry / devops / ocaml
library5.3.0jsnpmunverified

OCaml compiler packaged for esy. This package provides the OCaml compiler and standard library for use with esy, a package manager for native development. Version 5.3.0 is the current stable release. It is not intended for direct npm consumption but as a dependency for esy-based projects. Key differentiator: it enables OCaml development within the npm/JavaScript ecosystem via esy.

npm install ocaml
INSTALL
IMPORT
SIG · OCAML
O
ocaml
devopsjavascriptv5.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
// Not importable directly; use esy package manager
npm install ocaml
This package is for esy; direct npm install is not the intended use.

Minimal esy project configuration to use OCaml 5.3.0.

{ "name": "my-ocaml-project", "version": "1.0.0", "esy": { "build": "dune build" }, "dependencies": { "@opam/dune": "*", "ocaml": "~5.3.0" } }
Debug
Known issues
gotchaThis package is designed for esy, not direct npm consumption. Use esy to manage OCaml dependencies.
fix
Use esy init and add ocaml to your esy dependencies.
affects: >=5.0
gotchaNo README data found; rely on OCaml's official documentation for usage.
fix
Refer to ocaml.org/docs.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'ocaml'
Attempting to require or import the package directly in JavaScript.
fix
This package is not a JavaScript module; use esy to invoke the OCaml compiler.
Upgrade
Version history
5.3.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ocaml — npm install ocaml · libregistry