OpenClaw prompts 'Cannot find module '@buape/carbon'', most likely it's not that your machine is missing a strange package, but that the bundled channel related dependencies are missing in the source code build link. OpenClaw's official open-source repository is https://github.com/openclaw/openclaw。 Someone in the community has already encountered the same problem: after updating to a new version, the TypeScript compilation gets stuck directly on modules such as '@buape/carbon', 'grammy', '@slack/web-api'. In related discussions, a more stable approach is not to manually reload globally, but to go back to the project's installation script or postinstall process to fill in the missing dependencies.
A typical signal is that after you 'npm install', the compilation is still reported as 'TS2307', but the runtime is not necessarily really missing modules. At this time, first check the OpenClaw installation directory to confirm whether the postinstall of bundled plugins has been completed. If you are building from source, it is best to run it again according to the installation process of the repository.
Common processing sequences
- Do not manually install individual packages globally to avoid version drift.
- Check if you missed the postinstall of the installation script or bundled plugins.
- If you are updating from source, see if you need to rebuild the dependency tree first.
This problem is easily misjudged because the error looks like "the module does not exist", but the real root cause is usually "the dependencies are not completed according to the official process at the time of construction". If you make up the process first and then make up the package, the success rate will be much higher.