The following steps are required to install ZeroGraph:
- environmental preparation::
- Install Node.js (recommended version 16+) and npm/yarn with the command
node -vcap (a poem)npm -vVerify the installation. - (Optional) Install TypeScript globally:
npm install -g typescriptto support type checking.
- Install Node.js (recommended version 16+) and npm/yarn with the command
- Install ZeroGraph::
- Use npm:
npm install @u0z/zero-graphThe - or use yarn:
yarn add @u0z/zero-graphThe
- Use npm:
- Verify Installation::
- Create a TypeScript file (e.g.
test.ts), import the module and export the information:import { Node, Flow } from '@u0z/zero-graph'; console.log("ZeroGraph installed successfully!"); - Compile and run:
tsc test.tscap (a poem)node test.jsIf the success message is displayed, the configuration is correct.
- Create a TypeScript file (e.g.
This answer comes from the articleZeroGraph: a lightweight AI agent programming frameworkThe
































