Intranet environments cannot directly access the npm registry. You need to create the project and install dependencies in an internet-connected environment, then package the complete project and migrate it to the intranet server for deployment.
Overall flow: Create project on internet → Install dependencies and package → Copy to intranet → Extract, configure, and start
node_modules may be incompatible/app/my-nocobase-app), otherwise it will not run after migrationCreate the project and install dependencies in an internet-connected environment.
Run the following on a machine with npm access. Important: First switch to the target parent directory (e.g., cd /app) so the project path is /app/my-nocobase-app, matching the intranet deployment path.
--skip-dev-dependencies skips dev dependencies (for production deployment to reduce size)APP_ENV=production sets the app to production modeTZ sets the application timezone (defaults to system timezone)DB_* are database settings; update them to match your databaseSteps 4–7 below are only for downloading commercial plugins. If you only use the open-source version, skip steps 4–7 and go directly to step 8 to package.
Visit:
Migrate the packaged project to the intranet server.
Copy nocobase-app.tar.gz to the intranet server (e.g., via USB or file share), then extract (use the full path if the tar.gz is not in the current directory):
Create a .env file in the project root. Refer to the internet environment config and update these:
DB_HOST: Change to the intranet database address (if the database is on another intranet server)DB_PORT, DB_DATABASE, DB_USER, DB_PASSWORD: Match the actual intranet database configurationAPP_KEY: Keep the same as the internet environment if possible; otherwise existing tokens will be invalidatedYou can run cat .env in the internet project root to view the full config, then copy and adjust for the intranet.
Visit http://<intranet-server-ip>:13000 and log in with the initial account.
Commercial users need to enter the License Key. Visit:
Copy nocobase-app.tar.gz to the intranet server, then extract:
If the License authorization has changed, enter it again. Visit:
Q: Intranet startup fails with "module or binary not found"?
A: Ensure Node.js version and OS architecture match between internet and intranet (e.g., both Linux x64, Node 20.x). If they differ, run yarn install again in the same environment and repackage.
Q: Path-related errors after extraction?
A: Ensure the intranet extraction path matches the internet creation path (e.g., both /app/my-nocobase-app). Use the -C option with tar -xzf to specify the same path.
Q: Database connection failed?
A: Confirm DB_HOST in .env points to a database address reachable from the intranet, and that the port and firewall rules are correct.