Error updating and installing npm

The bot updated by git pulling but couldn't restart himself.

Now trying to run npm install shows this:

root@Clawdbot:/home/root/clawdbot# npm i
npm warn Unknown project config "allow-build-scripts". This will stop working in the next major version of npm.
npm error code 1
npm error path /home/root/clawdbot/node_modules/node-llama-cpp
npm error command failed
npm error command sh -c node ./dist/cli/cli.js postinstall
npm error node:internal/modules/esm/resolve:204
npm error const resolvedOption = FSLegacyMainResolve(pkgPath, packageConfig.main, baseStringified);
npm error ^
npm error
npm error Error: Cannot find package '/home/root/clawdbot/node_modules/node-llama-cpp/node_modules/yargs/index.js'

I tried letting the bot restart the gateway himself:

root@Clawdbot:/home/root/clawdbot# clawdbot config set commands.restart true
npm warn Unknown project config "allow-build-scripts". This will stop working in the next major version of npm.

clawdbot@2026.1.11-4 clawdbot
tsx src/entry.ts config set commands.restart true

[clawdbot] Failed to start CLI: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'tar' imported from /home/root/clawdbot/src/plugins/install.ts
at Object.getPackageJSONURL
Was this page helpful?