To install a Node.js package, use the npm launcher from $GRAALVM/bin. Use the node utility to execute Node.js applications: node This installs the node and npm launchers in the $GRAALVM/bin directory. It can be installed with the GraalVM Updater: $GRAALVM/bin/gu install nodejsĪlternatively, you can download the Node.js runtime component manually and install it from a file, e.g.: $GRAALVM/bin/gu install -file ~/Downloads/nodejs-installable-svm-java17-linux-amd64-21.3.0.jar Since GraalVM 21.1, the Node.js support is packaged in a separate GraalVM component. GraalVM is capable of executing unmodified Node.js applications.Īpplications can import npm modules, including native ones. GraalVM can run plain JavaScript (ECMAScript) code: js - įor information about the compatibility of GraalVM JavaScript with existing standards and engines, see JavaScriptCompatibility. To migrate the code previously targeted to the Nashorn or Rhino engines, migration guides are available. This reference documentation provides information on available JavaScript engine configurations, the Node.js runtime, the implementation, multithreading support details, possible embedding scenarios, and more. It is fully standard compliant, execute applications with high performance, and provide all benefits from the GraalVM stack, including language interoperability and common tooling. GraalVM provides an ECMAScript-compliant runtime to execute JavaScript and Node.js applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |