Prerequisites
Before installing Intelligence Space, ensure you have the following installed on your system:- Node.js: Version 20 or higher
- npm: Comes bundled with Node.js
Installation
Install dependencies
Install all required packages using npm:This will install all dependencies including:
- Next.js 16.1.6 - React framework for server-side rendering
- React 19.2.3 - UI library
- Three.js & React Three Fiber - 3D rendering engine
- @google/genai - Google Gemini API client
- d3-force-3d - Physics simulation for graph layout
- Zustand - State management
- Tailwind CSS v4 - Styling framework
Project Structure
Once installed, your project structure includes:/app- Next.js App Router pages and layouts/components- React components for UI and 3D visualization/lib- Utility functions and configurations/actions.ts- Server Actions for Gemini API integration.env.local- Environment variables (you’ll create this)package.json- Project dependencies and scripts
Available Scripts
After installation, you can use these npm scripts:Development Server
The development server runs onhttp://localhost:3000 by default. Hot reloading is enabled, so changes to your code will automatically reflect in the browser.
Troubleshooting
npm install fails with permission errors
npm install fails with permission errors
If you encounter permission errors during installation:
- Avoid using
sudowith npm - Configure npm to use a different directory:
- Try the installation again
Node.js version is too old
Node.js version is too old
Intelligence Space requires Node.js 20 or higher. Update Node.js using:
- nvm (recommended):
- Direct download: Visit nodejs.org
Module resolution errors
Module resolution errors
If you see module resolution errors:
- Delete
node_modulesandpackage-lock.json: - Clear npm cache:
- Reinstall dependencies: